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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670eae635f48d_395670eae63492c0.jpg)
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
Get step-by-step solutions from verified subject matter experts
