Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ code Write c++ program that reads from user the operation type, and the value to convert. The program performs the conversion and prints the

c++ code image text in transcribed
image text in transcribed
Write c++ program that reads from user the operation type, and the value to convert. The program performs the conversion and prints the converted value based on the operation type as the following Operation Conversion 0 convert weight from Kilograms to Grams convert height from Meters to Centimeters 1 2 convert currency from JD to USD Knowing that: 1 KG = 1000 G 1 M = 100 CM 1 JD = 1.41 USD The output must contain your name. Test1: The underlined text is input from user Pls Choose: 0: to convert weight from KG to G 1: to convert height from M to CM 2: to convert currency from JD to USD 1 Pls Enter value to convert: 2 Maha Mohammed Converted value = 200 CM Maha Mohammed Converted value = 200 CM Test2: The underlined text is input from user Pls Choose: 0: to convert weight from KG to G 1: to convert height from M to CM 2: to convert currency from JD to USD 2 Pls Enter value to convert: 3 Maha Mohammed Converted value = 4.23 USD

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions