Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago