Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started