Write a function that takes inputs of quarts and pints


Write a function that takes inputs of quarts and pints (whole numbers), then calculates and returns an output of the total number of gallons (a floating-point value). There are 4 quarts in a gallon, and 2 pints in a quart. Use appropriate parameter passing and return mechanisms. Use appropriate datatypes. For example, with inputs of 4 quarts and 4 pints, the result would be 1.5 gallons. Use proper code formatting techniques. Do not write a main routine. Your function does not do cin or cout.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function that takes inputs of quarts and pints
Reference No:- TGS0662056

Expected delivery within 24 Hours