Question: Problem 5(1 point. Instructor's Initials A grocery store owner has asked you to develop a program for use in the checkout process. The program should
Problem 5(1 point. Instructor's Initials A grocery store owner has asked you to develop a program for use in the checkout process. The program should a) Prompt the cashier to enter the cost of the first item b) Continue to prompt for additional items until the cashier enters 0 c Display the total d) Prompt for the amount the customer submits as payment e Display the change due All money displays should have dollar signs and 2 digits after the decimal (i.e.$27.32, not 27.3200000). If the cashier accidently enters a negative value, the program should not accept the value as part of the total, nor should it stop or crash. Instead it should remind the cashier that there are no negative prices in the store, and keep working (hint: use the continue instruction). Demonstrate operation to the instructor, and print a copy of the program to attach to the lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
