Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2:06 PM bblearn.uca.edu ll Verizon LTE Assignment: (Save this file as Lab5-3-YourLastName.cpp.) The force of gravity is different for each of the nine planets in

image text in transcribed
2:06 PM bblearn.uca.edu ll Verizon LTE Assignment: (Save this file as Lab5-3-YourLastName.cpp.) The force of gravity is different for each of the nine planets in our solar system. For example, orn Mercury it is only 0.38 times as strong as on Earth. Thus, if you weigh 100 pounds on Earth, you would weigh only 38 pounds on Mercury Write a program that allows you to enter your Earth weight and your choice of planet to which you would like your weight converted to. Calculate your weight on the chosen planet. Display your Earth weight, your weight on the desired planet to a tenth of a decimal point, and the name of the planet you chose. Design a menu for the planet choices. The relative forces of gravity for each planet are: 2.65 0.39 0.38 1.23 0.05 1.17 1.05 0.78 Jupiter ars . Mercury Neptune Pluto Saturn . Uranus . Venus Sample Input: This program converts your weight on Earth to your weight on the planet of your choice. Please enter your weight on planet Earth: 152.5 Please enter the number that follows your planet of choice. MERCURY: 1 VENUS: MARS: JUPITER: 4 SATURN: 5 URANUS: 6 NEPTUNE: 7 PLUTO: Planet Number= ? 7 Sample Output: Your weight on earth: Planet Chosen: Your weight on the chosen planet 187.6 lbs. 152.5 lbs. Neptune

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

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

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

2 The main characteristics of the market system.

Answered: 1 week ago