You are to develop a student record system tat makes use of the C++ structure and classes.
The record system is to be used to hold information about your assessment results for your current semester. This will allow you to keep track of your marks for each unit/module of study, display the total for each unit as you progress, as well as display the marks you need to obtain to pass the unit.
Unit/Module
1) EBEP2011- Principle of Electric Machine
ASSIGNMENT 1 -10%
ASSIGNMENT 2 - 10%
TEST 1 - 10&
TEST 2 - 10%
FINAL EXAM 60%
2)EBGE2061-PROCESS CONTROL AND INSTRUMENTATION
LAB 1 -10%
LAB 2 - 10%
LAB 3 - 10&
LAB 4 - 10%
FINAL EXAM 60%
3)EBEE2031-PRINCIPLE OF MICROCONTROLLER SYSTEMS
LAB 1 -10%
LAB 2 - 10%
LAB 3 - 10&
LAB 4 - 10%
FINAL EXAM 60%
4)EBGE2071-ELECTROMAGNETIC FIELD THEORY AND APPLICATIONS
ASSIGNMENT 1 -10%
ASSIGNMENT 2 - 10%
CLASS TEST - 20&
FINAL EXAM 60%
5)EBGE2081-OBJECT ORIENTED PROGRAMMING
LAB 1- 5%
LAB 2- 5%
ASSIGNMENT 1- 30%
FINAL EXAM - 60%
6)EBEM2021-CORPORATE SOCIAL RESPONSIBILITY
CSR PROJECT - 40%
PORTFOLIO- 20%
FINAL EXAM -40%
AN ADDITIONAL DERIVED CLASS SHOULD BE CREATED TO
1)SAVE DATA IN THE DATABASE TO A FILE
2)READ DATA FOR THE DATABASE FROM A FILE INTO THE PROGRAM
3)REMOVE A PARTICULAR DATA FROM THE DATABASE AND REPLACE IT WITH NEW DATA
You could design it this way:
-Create one DB class as the main, and a vector/struct, or a couple of them is internal containers to store the info(maybe each module to a vector/struct)
-Make those vectors/struct not inheritable by tagging them as "final"(C++11)
-For the derived class, they may have functions that use references to access the stored data.