194k views
3 votes
Extension: Cash Register Program

3 3 unread replies.3 3 replies.


In CodeSkulptor, write a cash register program that calculates change for a restaurant of your choice. Your program should include:



Ask the user to input the cost of 3 items purchased by the customer*


Tell the user the total cost of the items purchased


Ask the user to input the amount paid by the customer


Calculate and print the amount of change to be given to the customer


*Hint: What data type will you need to use to deal with money (decimal numbers)?



Then, save your program and post the link to it into the discussion below.



After you post, you will be able to see the programs submitted by other students. Look through their programs and reflect: How are the programs similar to yours? How are they different?

User Carlene
by
5.0k points

1 Answer

1 vote

Answer:

hee hee 4 you are correct

Step-by-step explanation:

User Jpangamarca
by
4.7k points