Professional Documents
Culture Documents
Reports Lab
Reports Lab
Administrator
Phone
Date
Biodata
Academic data
Application details
DATE:
DATA MEMBERS : three integers
MEMBER FUNCTIONS : constructor, method to get input, method to get output.
PHONE:
DATA MEMBERS : 2 enum data types, 2 character arrays.
MEMBER FUNCTIONS: method to input number, method to show number. Administrator has
been declared as friend class.
MEMBER FUNCITONS: Methods to set the marks for matric, fsc, olevels, alevels and
Page
qualification. Methods to show all these set values are alson made.
Administrator has been set as friend class.
MEMBER FUNCTIONS:
As shown in the code provided, all the classes have standard input/output functions for entering and
viewing the data. Apart from insertion functions there is a function in administrator class for creating an
administrator and authenticating an administrator.
1. New Applicant
2. Administrative Tasks
3. Terminate
The New applicant option when selected prompts user to input biodata as well as academic data. The
object creation is via dynamic objects. Each pointer element points to different data. Here when
getqualification function is called it returns an integer. If the applicant has a qualification of Pre-
Engineering or O-level the Function returns a value of 1 & 3 respectively and if the qualification is Pre-
Medical the function represents a value of 2. These values are used to control the type of admission
requested by the applicant. The case switch of this exits by incrementing the pointer array index.
Now if we select administrative tasks the program calls login function. It returns a bool value and stores
it in bool authen. In the login function the user has to input username and password. This username and
4
password is stored in temporary variables and matched with the existing variables of class object. The
Page
Boolean values are returned accordingly. If there is a match authen(in main function) is assigned true
otherwise false. A case switch is created which has a control variable authen. If authen is true the user is
authenticated otherwise program returns to main menu.
If the user is authenticated, the program asks the user to enter number of records to skip. That variable
is put into pointer and if there exists a data on that location the program displays/manipulates data
according to options available otherwise a message is displayed that data does not exists at specified
location and program returns to main menu.
When the application is terminated a thank you message is displayed and requires the user to input any
key to exit.
Limitations:
1. Only upto 100 records can be entered.
2. Use of terminating character to end character arrays.
3. Age limitation of admission is not implemented.
4. There is no check available to check precedence of qualification
5 Page