0% found this document useful (0 votes)
144 views2 pages

Object Oriented Programming: Assignment # 02

The document is an assignment for an Object Oriented Programming class. It instructs students to write a C++ class called 'student' with data members for name as a char and marks1 and marks2 as integers. The class is to have methods for calculating and displaying the average mark. Students are asked to input their name and marks, then have their average calculated and displayed on separate lines. They must also attach the compiled output screen.

Uploaded by

Osama Mirza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views2 pages

Object Oriented Programming: Assignment # 02

The document is an assignment for an Object Oriented Programming class. It instructs students to write a C++ class called 'student' with data members for name as a char and marks1 and marks2 as integers. The class is to have methods for calculating and displaying the average mark. Students are asked to input their name and marks, then have their average calculated and displayed on separate lines. They must also attach the compiled output screen.

Uploaded by

Osama Mirza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like