Está en la página 1de 9

SUBMISSION DEADLINE

APRIL 26, 2017

STUDENT REPORT CARD SYSTEM


CS102L

M. KAMRAN, ARFA ALI, SHAFAQ KHAN, WAQAS ALI


STUDENT REPORT CARD SYSTEM
PROJECT STATEMENT
Student Report Card System through class based C++.

IMPLEMENTATION DETAILS

You are required to implement a student class with following data members and functions.

a) Data members include roll no, name, marks and grade of a student.

b) Use file system to keep the information about the student.

c) The file system should be in binary format where each student has its own file.

d) Use object oriented programming approach to deal with the data files.

e) Member functions in this class are used for accept / display details of students and a
function to calculate grade based on marks obtained by student. Student Records are
stored in binary file.

Getdata: function to accept data from user


Calculate: function to calculate grade
Showdata: function to show data on screen
Show_tabular: function to show data in tabular form
Retrollno: function to return roll no of a student

4/26/2017 Student Report Card System 1


Modify the program to accommodate UndergraduateStudent, GraduateStudent, Freshman,
Sophomore, Junior, Senior, etc.) to enrich the hierarchy.

*Sophomore: a second-year university or high-school student.


*A junior is a student in their third year of study

FUNCTIONALITY OF THE PROJECT:

The menu driven program should also illustrate read, write, search, modify and delete
operations in binary file. All the modules of the system and their working are explained in
following points:
write_student function to write the record in binary file
display_all function to read all records from binary file
display_sp(int) function to accept roll no and read record from binary file
modify_student(int) function to accept roll no and update record of binary file
delete_student(int) function to accept roll no and delete selected records from binary
file
class_result function to display all records in tabular format from binary file
result function to display result menu
Intro function to display welcome screen
entry_menu function to display entry menu on screen
Use file handling with exceptions that program never crashed on any command.
4/26/2017 Student Report Card System 2
The program can add new member and the new data file with each student must
generated based on their roll no.
Use proper comments for understanding of project.

Header file used for reading and writing files is #include<fstream>

Main Screen:

1. Entry/Edit Menu:

This function should edit and enter the record of any student, display all students records,
search student record, modify and delete student record.

Suppose user enter option 1 then it will show the following output:

4/26/2017 Student Report Card System 3


If option 2 is entered then this will display all records of students as:

For option 3 it should search any specific student whose record we want to edit or display

4/26/2017 Student Report Card System 4


For option 4 it should modify the result of any student and display the updated result

For option 5 it should delete the record of specific student.

2. Result Menu:

This function should display the results of students.

For option 1 it should display all students result

4/26/2017 Student Report Card System 5


For option 2 it should ask the roll no of a student whose full report card we want to get and
it should show the full result of a student

3. Exit:

This will exit you from the system

SAMPLE CODE:
class Student
{

private:

int ID;
string name;

4/26/2017 Student Report Card System 6


double GPA;
char gender;

public:

Student()
{
}
Student(int ID, string name, double GPA, char gender)
{
}
void setStudent(int ID, string name, double GPA, char gender);
int getID();
string getName();
double getGPA();
char getGender();
void print();
};

Student :: Student(int ID, string name, double GPA, char gender)


{
this -> ID = ID;
this -> name = name;
this -> GPA = GPA;
this -> gender = gender;
}

INSTRUCTIONS FOR IMPLEMENTATION:

1. The entire program has to be menu driven. (Keep the menu simple but attractive)
2. When program starts the user should be able to view the Main Menu and from there the
user should be able to move to the sub-menus.
3. Use the object oriented programming concepts and file handling.

4/26/2017 Student Report Card System 7


4. Be careful regarding the code clarity (Proper variable names, spacing and indentations).
5. Be sure to demonstrate the exceptions too and handle them properly. By handling, it
mean that you should cout the message and prompt when invalid values are entered.
6. Properly comment your code. ( Do not write function names or parameters in comments;
instead write why you have made this function & what it does. Also comment different
parts of workings within the functions.)
7. User interface must be friendly.
8. Be CREATIVE and try to implement it with your own ideas.

TEAM STRUCTURE
THIS IS AN INDIVIDUAL PROJECT.

SUBMISSION GUIDELINES:
Submit your work in zipped form at your lab day instructors email ids
Subject of the email must be Mon D Proj
Name of the file should be CS102L_Proj_<yourRollNumber>
ZERO credit for plagiarism (cheating). There will be zero tolerance for cheating
The zipped file must contain ReadMe.txt to show how to run your code.
Each stage of the project has value; so do not overlook any single section.

4/26/2017 Student Report Card System 8

También podría gustarte