Question: ) ( 1 0 points ) Gallon is a common volume unit. Sometimes, we need to convert gallon to other units such as Liter (
pointsGallon is a common volume unit. Sometimes, we need to convert gallon to
other units such as Liter L Cup, Fluid Ounce fl oz
Write a function that will receive a volume in Gallon as an input argument. The
function will convert the input to Liter, Cup, and Fluid Ounce. Return these three converted
values as output arguments of the function.
The conversion formulae are:
Gallon Liters
Gallon Fluid Ounces
Cup Fluid Ounces
If your function is named as VolUnits, it should work exactly as the followings:
Lite Cup, FozVolUnits
Lite
Cup
Foz
LCVolUnits
L
C
LCOVolUnits
The input volume cannot be negative!
L
C
O
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
