American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

2 PM – Intro To Python – Gamas

March 21 @ 2:00 pm - 3:00 pm

Today We Did
  1. We finished Grocery Shopping Cart project.
Homework

Create the following program

You have $50 in your wallet.

These are books available for you to buy
1. Harry Potter - $20
2. Lord of The Rings - $30
3. Hobbit - $35
Which Book would you like to buy (enter "quit" to stop): 1

You purchased Harry Potter for $20.
You have $30 remaining in your wallet.

These are books available for you to buy
1. Harry Potter - $20
2. Lord of The Rings - $30
3. Hobbit - $35
Which Book would you like to buy (enter "quit" to stop): 2

You purchased Lord of The Rings for $30.
You have $0 remaining in your wallet.

These are books available for you to buy
1. Harry Potter - $20
2. Lord of The Rings - $30
3. Hobbit - $35
Which Book would you like to buy (enter "quit" to stop): 1

Sorry you do not have enough money to purchase Harry Potter.
Please come back when you have enough money.

These are books available for you to buy
1. Harry Potter - $20
2. Lord of The Rings - $30
3. Hobbit - $35
Which Book would you like to buy (enter "quit" to stop): quit

These are the books that you purchased:
Harry Potter
Lord of The Rings
There are $0 remaining in your wallet.

Details

Date:
March 21
Time:
2:00 pm - 3:00 pm