Question: 7.4 Practice Task 4 [Expected time = 15mins] There are N number of bottles and M number of glasses that will be filled from these

 7.4 Practice Task 4 [Expected time = 15mins] There are N

7.4 Practice Task 4 [Expected time = 15mins] There are N number of bottles and M number of glasses that will be filled from these bottles. Each bottle can fill up 5 glasses. You are to write a program that will ask user to input N and M, and check if the bottles are enough to fill M glasses. If bottles are not enough throw an exception informing the user. HINT: Total number of glasses that can be made from bottles = 5*number of bottles

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 Programming Questions!