Question: Write a C + + program that will use a function called ConvertWeight that accepts a real Value and two characters InUnits and OutUnits and
Write a C program that will use a function called ConvertWeight that accepts a real Value and two characters InUnits and OutUnits and then converts Value given in InUnits to the equivalent value in OutUnits and display this value. Inputs must be read from a file called data.txt Output must be displayed at the console screen The following is the conversions chart:
InUnits or OutUnits Symbol
Conversion
P for pints
pints to liters: pt L
L for liters
Q for quarts
quarts to liters: qt L
G for gallons
gallons to liters: gal L
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
