Programming Assignment
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, create a Word or PDF document with the following:
1) Your name, date and assignment identification at the top of the page (Ex. CIS-210 Week 6 Programming Assignment)
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.
Archive (zip) the results document and the actual .java code files into a single zip file and submit through the classroom. Please name the zip file with
Grading Rubric
NOTE: Partial credit is only available to submissions with no syntax errors (able to compile and run) AND a Results Document that contains the Java code with screenshots of the program running.
Java File (20 points)
Correct filename that matches class name 5 points
Code comment at the top of file with author, date and description 5 points
Proper code indentation 5 points
Code comments above all major sections of code 5 points
Java Architecture (50 points)
Proper while loop used for menu logic 15 points
Proper conditional statements used for each menu entry 10 points
Proper logic used for weather conditions 10 points
Proper for loop used to produce the rocket countdown sequence 15 points
Results Document (30 points)
Full Java source code listing from Java file 5 points
Screenshot of program successfully compiling with a timestamp 5 points
Screenshots of program running and showing proper input / output for 100% test coverage 20 points
Last Completed Projects
| topic title | academic level | Writer | delivered |
|---|
