a. Write a C++ function (Conversion) that converts between inches and cm OR between kg and pounds based on the user's input. The function has two inputs: Either the scale number in double and a letter...


Required in c++ (do not use arrays or complicated code please)




a. Write a C++ function (Conversion) that converts between inches and cm OR between<br>kg and pounds based on the user's input. The function has two inputs: Either the scale number<br>in double and a letter that indicates whether the entered value is in Inches ('I') or in Centimeters<br>('C') OR the weight in double and a letter that indicates whether the entered value is in<br>Kilogram ('K') or pounds ('P'). The function prints to the screen the conversion in the other<br>standard. Hint: use the following equations for conversion:<br>1 inch — 2.54 ст<br>1 Кg %3D 2.2 роиnds<br>

Extracted text: a. Write a C++ function (Conversion) that converts between inches and cm OR between kg and pounds based on the user's input. The function has two inputs: Either the scale number in double and a letter that indicates whether the entered value is in Inches ('I') or in Centimeters ('C') OR the weight in double and a letter that indicates whether the entered value is in Kilogram ('K') or pounds ('P'). The function prints to the screen the conversion in the other standard. Hint: use the following equations for conversion: 1 inch — 2.54 ст 1 Кg %3D 2.2 роиnds

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here