Question: Exercise 3 Write a program to help a restaurant owner get the smallest and highest bill each day. The program should request the user to

Exercise 3 Write a program to help a restaurant owner get the smallest and highest bill each day. The program should request the user to enter the bills one by one. Whenever the user enters 0 or any negative number the program stops and displays the smallest and largest bill. If the user directly enters 0 or a negative value it means that there were no customers on that day! See sample runs below: What is the amount of the bill \#1? 37.5 What is the amount of the bill \#2? 59 What is the amount of the bill \#3? 22 What is the amount of the bill \#4? -35.5 Today the smallest bill amount was: 22.0 While the highest bill amount was: 59.0 What is the amount of the bill \#1? 0 You had no customers today
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
