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: 1 pt =0.473167LL(for liters)Q(for quarts) quarts to liters: 1 qt =0.94633LG(for gallons) gallons to liters: 1gal=3.78541LMakesure:
 Write a C++ program that will use a function called Convertweight

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!