Question: Create a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds (Note that

Create a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds (Note that 1 kilogram equals 2.2 pounds). Format your output with two decimal places.

Test case 1 input: 80

Output needed: 176.00

Test case 2 input: 121

Output needed: 266.20

#include  using namespace std; int main() { setprecision+\D+2+\D 2.2 return 0; }

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 Programming Questions!