2. Write a C++ program that; Takes in the weight of a person in Kilograms, converts...

60.1K

Verified Solution

Question

Programming

2. Write a C++ program that;

Takes in the weight of a person in Kilograms, converts andoutputs the equivalent weight in pounds. Format your output to 3decimal places. Your output should look like this

53.000 Kg is equivalent to 123.459 Ibs

(Note 1Kg = 2.2046226218488 lbs)

Takes in the price of an item on an online store in poundsterling, converts and outputs the equivalent price in U.S dollars.Format your output to 2 decimal places.

Your output should look like this

£24.49 is equivalent to $31.96

To output the pound symbol, you need to display char(156). 156signifies the pound notation's location on the ascii table shown inclass

cout << char(156);

(Note £1 = $1.3048)

*BOTH CONVERSIONS SHOULD BE DONE IN THE SAME PROGRAM*

Answer & Explanation Solved by verified expert
4.0 Ratings (466 Votes)
include includeusing namespace stdint main    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students