Starting from:

$30

Lab2: Object-oriented Programming

Lab2: Object-oriented Programming
PURPOSE:
• learn to work with multiple classes
Description:
This assignment is similar to the first project. In this
assignment, please write a program that provides a way for you
to search and display information of all students in the class.
Student records including c# and scores of multiple categories
are saved in the file point.dat. Your program should:
• First, read all student information from the text file and
store them in an array of Student objects.
• Calculate total score and final letter grade. The total
score is the sum of CLA, OLA, Quiz, Homework, Exam and
Bonus. There will be five letter grades, A(=90), B(=80),
C(=70), D(=60), and F(<60). The letter grade is
determined based on the total score. For example, if the
term grade is 79, then the letter grade is C, and if the
term grade is 89, then the letter grade is B.
• Prompt user to input a valid c#, and the program display
all information of the student with the given c#, including
the total score and final letter grade.
• Then display information of all students, including total
score and final letter grade.
You can proceed as follows:
• Design and implement the class Student, which represents
ID, score information of a student. You will store
instances of this class in the Roster class.
• Design and implement the class Roster, which represents
class roster and provides approaches to manage the roster.
Skeleton header files for Student and Roster are provided. In
skeleton files, all member data and some functions are defined.
However, predefined functions may be not enough. Additional
functions may be required to accomplish the task.
Assignment Objectives:
This assignment provides experience in the new programming
paradigm -- object-oriented programming. In other words, you
need to design classes with an appropriate interface (i.e. the
set of public functions), and make them work together to
accomplish the specified task.
Requirements
1) You are required to use C++ classes for this program. You
should have a “Student” class, and a “Roster” class. Header
files for these classes are provided by the instructor. It
is not necessary to modify the provided header files.
2) Output for this program must clearly and neatly show that
the program does work and that it works correctly.
3) The files you need to submit are: Student.h, Student.cpp,
Roster.h, Roster.cpp, and ola2.cpp.
How to download assignment files:
Go to the URL: http://www.cs.mtsu.edu/~zdong/3110/public/OLA/
and download the file OLA1.zip, which contains the following
files:
•OLA2Description.doc: this file
•OLA2Rubric.doc: a rubric used to grade this assignment
•OLA2.exe: an executable solution provided by the instructor.
•Roster.h: the header for the class Roster.
•Student.h: the header for the class Student.
How to submit your Lab:
o softcopy:
 Use SVN to submit your project. Make sure your
repository has a folder for each project.
 Any commit of the project after the deadline is
considered as cheating. If this happens, the latest
version before the deadline will be graded, and you may
receive up to 50 points deduction.
o Hard copy:
 print all source files and the rubric
 Enclose the hardcopy of the program and the rubric in a
folder (about 9''x12''), and put C# (the one I give you),
your name, section #, instructor name on the folder.
(Note: You can buy folders from computer lab.)

More products