Question: Water Write a program that works out how many cups can be filled using a jug of water. Your program will get the dimensions of

 Water Write a program that works out how many cups can

be filled using a jug of water. Your program will get the

Water Write a program that works out how many cups can be filled using a jug of water. Your program will get the dimensions of the cup and jug as command line arguments. The cup's dimensions will be given first For example, if the program was run as $ python water.py I 3 3 3 then the cup has dimensions 1x1x1 and the jug has dimensions 3x3x3. You can assume that cups and jugs are rectangular prisms. Your program should then print the dimensions of the cup and jug, and finally print how many cups can be completely filled using the jug (which is already full of water) Example 0: $ python water.py I 3 3 3 Cup dimensions : 1.0 x 1. x . Jug dimensions: 3.0x 3.0x3.0 Number of cups that can be filled using the jug: 27

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