Respuesta :

We have that the program code is given as so

int main()

double weight_Kilograms;

double weight_Pounds;

cout <C "Enter the weight of the person in kilograms: ";

cin >> weight_Kilograms;

cout <C endl;

weight_Pounds = weight_Kilograms s KG;

cout <C fixed <<showpoint <C set precision (2);

cout <C "Weight of the person in pounds is: " <<weight_Pounds « endl;

return 0;

)

From the question we are told

Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds. Output both the weights rounded to two decimal places.

The Program code

Generally the code is

int main()

double weight_Kilograms;

double weight_Pounds;

cout <C "Enter the weight of the person in kilograms: ";

cin >> weight_Kilograms;

cout <C endl;

weight_Pounds = weight_Kilograms s KG;

cout <C fixed <<showpoint <C set precision (2);

cout <C "Weight of the person in pounds is: " <<weight_Pounds « endl;

return 0;

)

For more information on Code visit

https://brainly.com/question/950632

ACCESS MORE
EDU ACCESS