Question: Upgrade the NASA program from Week 5 so that the program is command line driven (CLI) and will allow the user to enter multiple scenarios

Upgrade the NASA program from Week 5 so that the program is command line driven (CLI) and will allow the user to enter multiple scenarios for launch analysis. The same weather criteria should apply. The program should continue to run until the user selects a Quit Program option. If the launch conditions are good, simulate a countdown from the 10 second mark using a count-controlled loop.

Here is an example of the program output:

Launch Analysis Program Menu Would you like to 1) Enter Current Weather Criteria 2) Quit Program Menu Selection: 1 Please enter sustained wind speed (in mph): 15 Please enter the current daily temperature (in F): 75 Weather conditions are good. The rocket is go for launch. Begin countdown 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 Launch successful.

Launch Analysis Program Menu Would you like to 1) Enter Current Weather Criteria 2) Quit Program Menu Selection: 1 Please enter sustained wind speed (in mph): 105 Please enter the current daily temperature (in F): -10 Weather conditions are poor. Abort rocket launch!

Launch Analysis Program Menu Would you like to 1) Enter Current Weather Criteria 2) Quit Program Menu Selection: 2 Quit Program selected. Exiting.

Also ensure that the following requirements are met:

1) Java file is named correctly. 2) Name, date and assignment information is included at the top of your Java code file as a comment. 3) Java code is properly indented and readable. 4) Code comments are present within each major section of code. 5) Output is formatted correctly and meets the requirements above.

Once you verify that your program runs correctly and you have met the requirements, 2) Full Java source code listing 3) Screenshot of the code compiling successfully in the IDE with the timestamp showing. 4) Screenshot of the code running showing the correct output under all test conditions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!