Details of this Paper

Java project1

Description

solution


Question

? Project 1;Design and implement a Java program that will read the name and number of points of the students and displays the comments accordingly.;In the following table there are the relation between Grades, Points and Comments;Grade;Points;Comments;A+;100;The grade is A+: Outstanding it is a perfect score. Well done.;A;90-99;The grade is A: Excellent Performance excels far above established standards for university-level performance.;B;80-89;The grade is B: Superior-Performance above established standards;C;70-79;The grade is C: Good- Performance meets established standards;D;60-69;The grade is D: Substandard- Performance is below established standards;F;0-59;The grade is F: Failure- Performance does not meet minimum requirements;Program Statement;The program ask you to introduce;First name;Points;The output is;Name of the student, Points, Grade, Comments regarding the grade (like in the table);1. Use JOptionPane.showInputDialog() methods for your user to input their data;2. Use JOptionPane.showMessageDialog() methods to display your messages.;3. 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;Input;Expected Output;Actual Output;Did Test Pass?;First name: John;Points: 97;John has points 97 and the grade is A: Excellent Performance excels far above established standards for university-level performance.;John has points 97 and the grade is A: Excellent Performance excels far above established standards for university-level performance.;Y;Additional data test have to be added;?;?;?;?;?;?;? Project 2;Assignments;Top of Form;Bottom of Form;This project demonstrates your understanding of datatypes, input/output, sequential and selection programming statements, and mathematical operations.;1. Design and implement a Java program that will gather a user?s first name, middle initial, lastname, age in years, and 3 lucky numbers. The program should output the following based on the user?s input;a. A welcome message repeating their full name (e.g. Welcome John Q Smith);b. A message based on their age with these types of messages.;Display ?You are just a kid!?, if the user is less than or equal to 12 years old;Display ?Welcome teenager!?, if the user is greater than 12 and less than 20 years old;Display ?Welcome almost adult!?, if the user is 20 years old.;Display ?Welcome adult!?, if the user is 21 years old or greater.;c. A message displaying the average of their 3 lucky numbers. For example ?The average of your 3 lucky numbers is: 20?;2. Additional requirements include;1. Use JOptionPane.showInputDialog() methods for your user to input their data;2. Use JOptionPane.showMessageDialog() methods to display your messages.;3. 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;Input;Expected Output;Actual Output;Did Test Pass?;Firstname: John;MiddleInitial: Q;Lastname: Smith;Age: 34;Lucky Num1: 10;Lucky Num 2: 20;Lucky Num 3: 30;Welcome John Q Smith;Welcome Adult!;The average of your lucky numbers is: 20;Welcome John Q Smith;Welcome Adult!;The average of your lucky numbers is: 20;Y;Additional test cases here. Be sure to test all logic.

 

Paper#64761 | Written in 18-Jul-2015

Price : $27
SiteLock