subject

Generate some information for a user about interplanetary travel (pretend we can travel easily to other planets for this problem). Write a program that will perform calculations concerning weight on various planets as well as travel time between planets. (Do not use arrays for this program - make the program as efficient as possible using only selection statements) Your program should start out by displaying the following information about the program: Welcome to INTERPLANETARY TRAVEL PROGRAM! This program enables you to find out your travel time to the planet you want to travel to as well as your weight on there. Please enjoy the program and hope you'll find the perfect planet for you! Next the program should display the following menu: INTERPLANETARY TRAVEL MENU

a) Mercury
b) Venus
c) Earth
d) Mars
e) Jupiter
f) Saturn
g) Uranus
h) Neptune
q) Quit

Select a planet to travel to or q to quit the program:

If the user chooses a-h, the program should then ask the user to enter their weight (ask politely) and the speed at which they wish to travel (in miles per hour). Now you have all the data you need from the user: the planet they wish to travel to, their weight (in lbs on Earth) and the speed at which they wish to travel (in miles per hour).

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 03:30, etxchrissy
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
image
Computers and Technology, 24.06.2019 06:30, titalili0204
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
image
Computers and Technology, 24.06.2019 08:30, 5theth
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, zeesharpe05
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
You know the right answer?
Generate some information for a user about interplanetary travel (pretend we can travel easily to ot...

Questions in other subjects:

Konu
Mathematics, 20.09.2019 11:20