pseudocode the program first. Include appropriate comments.
- Create a string array and add the following names:
- Boney, Sam
- Inovera, Marge
- Moore, Bruno
- Steem, Lois
- First, Hugo
- Display the names in the array, one per line
- Sort that array into alphabetical order by last name
- Display the names in the array, one per line
- Create a second string array; using your imagination to match the following jobs with the names in step 2 and place the job names into the new array in the same order as the sorted name array
- Bungi jumping instructor
- Caffeine addiction counselor
- Statistician
- Assertiveness training coordinator
- Ice rink manager
- Display the job array, one per line
- Display the names and their corresponding jobs, separated by 5 space, one name and job per line.
- Create a class called Student represented by the following UML:
Student
|
-lastname: string -firstname: string -grade: string
-job: string -percentage: float
|
+calcGrade()
|
- Create the appropriate constructor, getters and setters for the class.
- Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.
- Ask the user to input a percentage (in the range 00.00 to 100.00) for each student. Store the percentage in the class instance.
- Create the calcGrade function to generate a letter grade from the percentage for each student according to the grading stand below. Store the grade in the class instance.
A
|
93 - 100%
|
A-
|
90 - 92%
|
B+
|
87 - 89%
|
B
|
83 - 86%
|
B-
|
80 - 82%
|
C+
|
77 - 79%
|
C
|
73 - 76%
|
C-
|
70 - 72%
|
D
|
65 - 69%
|
F
|
0 - 64%
|
- Display each instance of the class in this order: First Name, Last Name, Grade, Job.