ShaheedZulfikar Ali Bhutto Institute of Science & Technology
COMPUTER SCIENCE DEPARTMENT
Total Marks: 04
Obtained Marks:
Object Oriented
Programming
Assignment # 02
Last date of Submission: 11 March 2019
Submitted To: Muhammad Usman
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Student Name:
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Reg Number:
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Object Oriented Programming BS(SE)-2 SZABIST-ISB
ShaheedZulfikar Ali Bhutto Institute of Science & Technology
COMPUTER SCIENCE DEPARTMENT
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),
marks1,marks2 (integer 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.
Note: Also attach the compiled screen
Solution
Object Oriented Programming BS(SE)-2 SZABIST-ISB