Saturday, May 22, 2010

C programming (writing a function called liquid). The function needs to accept an integer number?

The function needs to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups. The passed integer represents the total number of cups, and the function is to determine the number of gallons, quarts, pints, and cups passed value. Using the passed addresses, the function should directly alter the respective variables in the calling function. It shoud print the results like this: If the user enters XX cups, the output should be:


XX gallons


XX quarts


XX pint(s)


XX cup(s)





Can anyone help me out.

C programming (writing a function called liquid). The function needs to accept an integer number?
Liquid(Cups, %26amp;Gallons, %26amp;Quarts, %26amp;Pints, %26amp;Cups)





you write the function, its just simple math.

sweet pea

No comments:

Post a Comment