Professional Documents
Culture Documents
Total Marks: 04
Obtained Marks:
Object Oriented
Programming
Assignment # 02
Last date of Submission: 11 March 2019
Student Name:
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Reg Number:
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Instructions:Copied or shown assignments will be marked zero. Late submissions are not
entertained in any case.
Question
Write a c++ class called 'student' with
Data members:
name(char type),
The program asks the user (Student should consider himself/herself) to enter name and marks.
Then calc_media() calculates the media note and disp() display name and total media mark on
screen in different lines.
Solution