1. Create a Java Application naming the Project PRJ1[Last Name][First Initial]. As an example, if your name was Xavier Smith, then the project would be named PRJ1SmithX.
2. Design and implement a Java program that will gather a user’s first name, middle initial, last name, age in years, and 3 lucky numbers. The program should output the following based on the user’s input:
a. Display a welcome message that includes their full name, e.g., “Welcome John Q Smith.”
b. Display a message on another line based on their age:
Less than 12 years You are just a kid!
12 years but less than 20 years Welcome teenager!
20 years but less than 21 years Welcome almost adult!
21 years or older Welcome adult!
c. Display a message on a line after a blank line with the average of their three lucky numbers, e.g., “The average of your three lucky numbers is: 20.”
3. Once the assignment works correctly, create three screen shots of the results using different data on the screen and name the files PRJ1SmithXShot[1, 2, 3].
4. Send the java file (PRJ1SmithX.java), the test data document (PRJ1TestSmithX.docx), and the screen shot files (PRJ1SmithXShot[1, 2, 3]) to the instructor at XXXXX@XXXXXX.XXX.
5. Additional requirements include:
a. Use JOptionPane.showInputDialog() methods for your user to input their data.
b. Use JOptionPane.showMessageDialog() methods to display your messages.
c. Include a comprehensive set of application test data that you used to test your program. Your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test. Your test data can be presented in the form of a table as follows:
Example application test data:
Prompt Input Expected Output Actual Output Test Pass?
Lucky Number 1:
Lucky Number 2:
Lucky Number 3: John
30 Welcome John Q Smith
The average of your lucky numbers is: 20 Welcome John Q Smith
The average of your lucky numbers is: 20 Y
Additional test cases here. Be sure to test all logic.
Project 1 graded requirements:
a. Correctly developed the set of prompts and the variables to hold the resulting input (3.0)
b. Used the JOptionPane.showInputDialog() properly (1.0 ).
c. Displayed the welcome message with the correct age message (2.0).
d. Displayed the correct average with the appropriate text (2.0).
e. Used the JOptionPane.showMessageDialog() properly (2.0).
f. The conditional programming structure code is appropriate (2.0).
g. The calculation is correctly coded (1.0).
h. Screenshots appropriate display (2.0).
i. There is a test data document (1.0).
Here is solution for CMIS141 project 1
It is 100% correct and very detail
Thank you for purchase my tutorial
If you have more question, please send to us via email email@example.com
We will help you any time.