Question: C++ QT Unit Conversion Project Description: Rather than rewriting code to convert one unit to another multiple times, we will write one single function to
Unit Conversion Project Description: Rather than rewriting code to convert one unit to another multiple times, we will write one single function to convert Any unit of measurement to any other unit of measurement. Then, we will build individual functions to convert specific units of measurement. TWO OBJECTIVES: 1. Universal Conversion Function: Write a single function to convert any pairs of units of measurement to any other pairs of units, provided it is passed the necessary information to do the conversion: All four types of conversions must be handled by a single function: /converting weight, length, volume or any pairs of units of measurement to any //for example from feet and inches to meters and cm, or from pounds and ounces //units converted will be referred to as the left hand units and the units we are /tor exanpie Pror toet and inches to meters and cn, or fron pounds and ounces /unita oorvrteddvit be crfvrred s the left hand units and the units we are /Iconverting to are referred to as the right hand units void Convert( int x, double x,/unit pairs to be converted left hand units int &Y, double &?, //result of conversion - right hand units
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
