Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program to accomplish this task, without the use of cout Write a program that asks the user to enter an object's weight

Write a c++ program to accomplish this task, without the use of "cout"

image text in transcribed

Write a program that asks the user to enter an object's weight in pounds and to select the name of a planet from a menu. The program then outputs how much the object would weigh on that planet. More detailed description: The table below gives the factor by which the weight entered by the user must be multiplied to determine the weight on the specified planet (or dwarf planet) Mercu Venus Earth Moon 0.4155 0.8975 ars Jupiter Saturn Uranus 0.166 0.3507 2.5374 1.0677 0.8947 1.1794 0.0899 Neptune For example, if the user enters a weight of 100 pounds, and then selects the planet Saturn, the program should output a weight of 106.77 pounds (100 * 1.0677) You should print/display a menu such as below on the console to allow the user to select the name of the planet. The user can then enter the number corresponding to the planet they choose. For example, if the user would like to select Neptune, they would enter a 9. 1. Mercury 2. Venus 3. Earth 4. Moon 5. Mars 6. Jupiter 7. Saturn 8. Uranus 9. Neptune 10. Pluto Please enter the number of the planet you would like to select: 9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago

Question

to encourage a drive for change by developing new ideas;

Answered: 1 week ago

Question

4 What are the alternatives to the competences approach?

Answered: 1 week ago