Question: Problem 5 : Cash register ( 1 0 points ) Write a program that implements the behavior of a cash register. Your program will consist

Problem 5: Cash register (10 points)
Write a program that implements the behavior of a cash register. Your program will consist of an indefinite while loop that keeps asking the user for the price of an item. After the user enters the price the program will add it to a running total. When the user simply presses the enter key, exit the while loop and print the number of items entered and total price. Here is a transcript showing how the program should work:A good place to start would be to understand how the running sum works in the statistics.py program covered in Unit 4.
Account for 0 items as follows:
Cash register (press enter to exit)
Enter item cost:
You entered 0 items totaling $0.00
Save and submit your program to Gradescope as cash_register.py
Problem 5 : Cash register ( 1 0 points ) Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!