Sunday, February 13, 2011

Assigment # 2 Classes, objects and methods/functions


Objective: 
Create a program that takes input of  Student registration, courses and their scores, the produce Marks-Sheet, this program should never exit until user input "exit" in any of field, once it produces the Mark-Sheet it asks for exit or continue with new Mark-Sheet

Details:
Create a class “Student” that keeps infgormation about student and it’s course scores

Name
Father Name
Class
CourseOneName
CourseOneScore
CourseTwoName
CourseTowScore
CourseThreeName
CourseThreeScore
CourseFourName
CourseFourScore
CourseFiveName
CourseFiveScore

Create Following Functrions/Methods
int calculateTotalScore()
calculates toltal of student’
Double calculatePercentage{}
This function will use calculateTotalScore() fucntion to get total score and calulate percentage
void displayMarksSheet() {}
User ASCII characters and Tabs to produce marksheet  on screen.
This method should use calculatePercentage() and calculateTotalScore() functions to produce Mark-Sheet

No comments:

Post a Comment