Question: Define a function convert _ volume ( ) that has two parameters as the number of cups and fluid ounces. The function returns the volume
Define a function convertvolume that has two parameters as the number of cups and fluid ounces. The function returns the volume converted to liters, given that:
fluid ounce liters
cup fluid ounces
Ex: If the input is:
then the output is:
liters LITERSPERFLUIDOUNCE
FLUIDOUNCESPERCUP
Your code goes here
numcups intinput
numfluidounces intinput
# Print with value rounded to decimal places
printfconvertvolumenumcups, numfluidounces:f liters'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
