Question
Please write in C++ This is all one problem You need to write a program that performs two differentcalculations: 1. Estimates how many kilos the
Please write in C++
This is all one problem
You need to write a program that performs two differentcalculations:
1. Estimates how many kilos the entered amount of poundscorresponds to.
2. Calculate the number of kilos that the pounds correspondto.
You should ask the users to enter the weight, in pounds, oftheir first lift. Once the user enters this information you shouldprovide the user with an estimate and an actual kilos amount. Thecalculation to estimate the number of kilos for the weight is:
Kilo=pounds/2-(pounds/2*1/10)
Here “pounds” is the name of a variable. When you work with the1/10th leave this is fraction form, do not turn it into a decimal.The numbers 2, 1, and 10 found within the formula should be savedto constant variables with descriptive names. For the exactcalculation you should have
Kilos=pounds/2.2046
The denominator found here is a constant value and should bestored as such. Sample results: 385 pounds = 173.25 estimate 174.63exact
In assignment 2 you had to write a program that asked a user toenter an amount in pounds and then performed a calculation for theexact conversion into Kilos and an estimated conversion into Kilos.For this assignment you will have the following:
1. A function that asks the user to enter in the amount ofweight in pounds.
2. A function that will calculate the exact weight in Kilos
3. A function that will calculate the estimate weight inKilos
4. A function that will print the results to the screen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started