Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What todo: Let\'s assume thatyou could travel to the Moon by car traveling at 10

ID: 3614399 • Letter: W

Question

What todo:

Let's assume thatyou could travel to the Moon by car traveling at 100 km/h. Howwould that take to

get there? Write a Cprogram that will present a menu with four options: 1. Traveling tothe Moon, 2.

Traveling to Mars,3. Traveling to Venus and 4. Exit program. Depending on the optionchosen your

program will displaythe distance from Earth to the intended destination (you will needto find that

information) and howmany days and hours it would take to get there by car.

Yourprogram must keep presenting the menu until the user chooses option4.

Note that there isonly one distance to the Moon but for Mars and Venus you will needto display the

minimum and maximumpossible distances and travel times.

Requirements:

1. You must use onlythe following C statements (no need to use them all): scanf,printf, if, switch,

while, for,do...while, and return; . If you use any other statements, you willget a zero mark.

2. You must followthe soft (style) rules to name your variables (all lowercaseonly).

3. You mustproperlyindent your program.Comments are not necessary unless specifically

required by yourprofessor.

4. Your program mustdisplay your name(s) on the screen.5. You must follow any otherrequirements (if any) specified by your professor (referto

Blackboard submission page oryour professor's web page).

Explanation / Answer

Do you just want a program that will just give you a menu to choosefrom or you want the user choose one of the menu and prints somecalculations? example if a user pick "travel to the moon" what doyou want the program to do?

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote