Question: ANSWER THE FOLLOWING IN JAVA: Implement a simple grade management program. Grades are stored as real number grade points (4.0, 3.7, 3.3...0.0). Array elements that
ANSWER THE FOLLOWING IN JAVA:
Implement a simple grade management program. Grades are stored as real number grade points (4.0, 3.7, 3.3...0.0). Array elements that are occupied will contain a grade within this range. For example, this array would be assumed to contain 4 grades (values outside the valid range represent 'unoccupied' elements): 3.3, 4.0, 2.7, 0, -1, -1, -1... The program includes basic statistical generation (average) and visualization of the data (query for the highest and the lowest grade). There is no requirement for including user input of the grades but the program must include the ability to initialize grades (hard-coded or random). The program will employ a text-based menu-driven interface.
Technical details
The program consists of 3 classes:
-
Driver: starting execution point.
-
UserInterface: responsible for displaying all menus, getting user input and determining the appropriate course of action. The Teaching Assistants have covered this type of class before. Although the ["GameInterface class"] in the "Dice example" covered in tutorial (Jan. 24 - 30) was less complex it can still be used as a starting template the class you write for this assignment.
-
Manager: stores the grades (1D array of double: maximum of 40 elements). While the user-interface class may be responsible for determining which option was selected by the user (e.g., display list, find highest grade etc.) only the manager class that can directly access or change the grade information. That's because the information (grades) is a property of the manager, the grade information is what the manager manages.
Program features
All output should not only be correct but the results should be clear, reasonably neat and presentable. The real number portion of a grade should only be displayed to one place of precision (e.g. 3.0 and not 3.00). The following features MUST be implemented.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
UML class diagram
You should create a UML diagram for class "Manager" and class "UserInterface". All information for a class should be specified (e.g., attributes, methods, parameters, return values, permission levels). Also the relationship between the two classes include multiplicity (see the notes which introduce Object-Oriented concepts) should be specified. The class diagram can be drawn using any structured drawing program (even PowerPoint). However the diagram must be correct and it must be understandable/readable by the marker. The image must be in one of the following formats: 'gif', 'jpg', 'png' or 'pdf''.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
