Question
I am asked the following: Design and implement a C++ class called Module that handles information regarding your assignments for a specific module. Think of
I am asked the following:
Design and implement a C++ class called Module that handles information regarding your assignments for a specific module. Think of all the things you would want to do with such a class and write corresponding member functions for your Module class. Your class declaration should be well-documented so that users will know how to use it.
The main program must do the following:
Declare an array of all your modules. The elements of the array must be of type Module.
Initialize the array with the modules you are registered for. Initialize each module with the assignment marks you have obtained for the module (or would like to obtain for the module).
Determine your semester mark for each module: the first assignment contributes 30% and the second assignment 70%. Display the semester marks.
Adjust the marks for Assignment 2 for COS1512 with +5%.
Determine your semester mark for COS1512 again to see what effect the update had.
Display an updated list of your semester marks for all the modules you are registered for.
Turn your Module class into an ADT, so that separate files are used for the interface and implementation. Use separate compilation to compile the implementation separate from the application file that tests the ADT.
Adapt the application program to use a vector instead of an array. It should not be necessary to change the class interface or implementation file in any way.
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