Question: Write a C + + program that displays a prompt asking the user to input his or her weight in pounds. Next, use the arithmetic

Write a C++ program that displays a prompt asking the user to input his or her weight in pounds. Next,
use the arithmetic operators to convert the weight in pounds to an equivalent weight in kilograms. Finally,
output the weight in kilograms. Neatly format the output. We shall use the conversion factor: 1 kg =
2.20462 lbs.
Please name your source code file lab3-1.cpp
2.[5 points] Program 2 Fahrenheit to Celsius Temperature Conversion
The well-known formula for converting a temperature in Fahrenheit to Celsius is:
Celsius =(5/9)*(Fahrenheit 32)
Write a C++ program that displays a prompt asking the user to input a Fahrenheit temperature. The
program shall then convert the Fahrenheit temperature into an equivalent temperature in Celsius. Finally,
output both the Fahrenheit and Celsius temperatures neatly formatted.
Please name your source code file lab3-2.cpp
Note: programmers much choose meaningful variable names as those will increase the readability of the
code for other programmers. For example, although you could make your programs work by naming the
variables which store the inputs fred and wilma, those are not particularly meaningful variable names when
the first variable represents the users weight in pounds and the second variable represents the
temperature in Fahrenheit. Better choices would be weight or weight_in_lbs and fahr_temp or temp_f.
Develop good programming habits as you learn to program because they can pay bigger dividends later
on when you start writing more than relatively simple programs.

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!