Question: c++ Write a function named liquid() that has an integer number parameter and reference parameters named gallons, quarts, pints and cups. The passed integer represents

 c++ Write a function named liquid() that has an integer number

c++

Write a function named liquid() that has an integer number parameter and reference parameters named gallons, quarts, pints and cups. The passed integer represents the total number of cups, and the function is to determine the numbers of galloons, quarts, pints, and cups in the passed value. Using the references, the function should directly alter the respective actual arguments in the calling function. Hint: 1 pint - 2 cups, 1 quart 4 cups, 1 gallon - 16 cups

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!