Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

Total Marks: __2.5__________

Obtained Marks: _____________

Date:

Object Oriented Programming


Techniques
(Lab)
Lab Task # 1

Submitted To: Mam Saira Shaheen


__________________________________________________________________________

Student Name: Yasir Hussain


_____________________________________________________________________

Reg. Number: 2280131


___________________________________________________________________________

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

1.Print Number Entered by User :

Output:

There are no errors in program but pc is giving compilation error

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

2.Add Two Integers:

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

3.Compute quotient and remainder:

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

4.Find Size of a Variable:

5.Find Size of int, float, double and char in Your System:

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

6.Swap Numbers (Using Temporary Variable):

7.Print ASCII Value in C++:

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology

COMPUTER SCIENCE DEPARTMENT

8.C++Program to Multiply Two Numbers:

Object Oriented Programming Techniques(Lab)


BSSE 2A SZABIST-ISB

You might also like