●Student with the attributes(Student_Id, student full name, average mark and course_id)
●Course with the attributes(Course_id, Course designation, number of years to complete and fee)
●School with the attributes(School code and highest qualification offered)
●Award with the attributes(Award code, description and amount)
Write the following functions for above data and incorporate them into one app:
● Four functions each responsible for capturing data about one of the data items above. Each stored in their respective array.
● A function that is responsible for capturing marks for each student.
● A function that searches for a maximum mark of a certain student; identified by their student id.
● A function that checks if a certain award is offered. The award must be searched by both their code and description.
● A function that allows replacement of the highest qualification offered by a school.
● Overload a function called DisplayDetails that displays all records for all the four data items.
#include <iostream>
using namespace std;
class Student {
private:
int id;
string fullname;
double avgmark;
int courseid;
public:
int getId() {
return this->id;
}
};
class Course {
private:
int id;
string designnation;
int numberofyear;
double fee;
public:
int getId() {
this->id;
}
};
class School {
private:
int code;
int highqualifier;
public:
int getCode() {
return this->code;
}
};
class Award {
private:
int code;
string description;
int amount;
public:
int getCode() {
return this->code;
}
};
int main() {
return 0;
}
Comments
Leave a comment