Question
A school is developing a student grade reporting system. The detailed requirements are listed below: The system manages a class of a certain number of
A school is developing a student grade reporting system. The detailed requirements are listed below:
- The system manages a class of a certain number of students
- For the class, the system should be able to:
- print a report of a list of students with the details of students listed one by one
- calculate the average GPA of all students
- query for a students GPA by their full name (assume no name conflict)
- For a student, the system should be able to:
- manage a students name and GPA
- create a student given a name and GPA
- set and get students name and GPA
- print a report on the details of the student (name and GPA)
Based on these requirements, please suggest possible decompositions of the problem as classes. List your classes in the following UML like format:
ClassName |
+ type1 instanceVariable1 - type2 instanceVariable2 |
+ returnType1 function1(param list) - returnType2 function2(param list) |
The first cell holds the class name; the second cell holds instance variables; the third cell holds methods. Use the initial -/+ sign to represent private/public access specifiers of the class members. Make sure to provide readable names for the classes, variables and functions using UpperCamelCase or lowerCamelCase following our naming convention. Return type is not necessary for constructors and destructors. Use C++ types. For lists, you can use vector type or array type.
Keep it simple. Focus on required features. No need to add any extra functionality. Anything not listed in the requirements are not necessary.
Provide your answers in a word document or RTF document. You can insert tables with one column and three rows for each class. No need to draw arrows. Just list classes.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started