Question: Write a C++ program that converts weights between kilograms and pounds. The program should use a menu to ask the user whether they want
Write a C++ program that converts weights between kilograms and pounds. The program should use a menu to ask the user whether they want to convert from kilograms to pounds or pounds to kilograms. The program should then ask for the weight in the chosen unit, perform the conversion, and print the converted weight. Your program should consist of at least two functions: Kilograms_to_pounds and pounds_to_kilograms. The conversion formulas are as follows: Kilograms to pounds: P = K* 2.20462 Pounds to kilograms: K = P / 2.20462 Remember to use a loop to allow the user to perform multiple conversions without having to restart the program. The program should only exit when the user chooses to do so. **Note:**You need to ensure that the user enters valid input. If the user enters an invalid choice, display a proper error message and ask them to choose again. Answer:
Step by Step Solution
There are 3 Steps involved in it
include Function to convert kilograms to pounds double kilogramstopoundsdouble kilograms return kil... View full answer
Get step-by-step solutions from verified subject matter experts
