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

Assignment 1

This document outlines an assignment for a C++ programming class. It contains 10 programming problems covering various object-oriented programming concepts like classes, objects, inheritance, polymorphism, friend functions, and namespaces. Students are instructed to complete the assignment problems by hand and submit a PDF file by the deadline of October 9th, 2020 following specific naming and formatting rules or risk losing marks.

Uploaded by

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

Assignment 1

This document outlines an assignment for a C++ programming class. It contains 10 programming problems covering various object-oriented programming concepts like classes, objects, inheritance, polymorphism, friend functions, and namespaces. Students are instructed to complete the assignment problems by hand and submit a PDF file by the deadline of October 9th, 2020 following specific naming and formatting rules or risk losing marks.

Uploaded by

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

Assignment #1:

1. What are the advantages of OOP over POP. Explain the features of OOP.
WAP in CPP that illustrates OOP concept.
2. Define default arguments. What are the rules for writing default arguments.
WAP in CPP to illustrate the concept of default arguments.
3. Explain how the use of default argument supports the function overloading
with suitable example.
4. Define namespace with its significance.
5. WAP in CPP to find the sum of two distances(in feet and inch) entered by
the user using the concept of friend function.
6. WAP in CPP to find the transpose of a given Matrix using the concept of
OOP.
7. WAP in CPP to find the sum of two distance object with feet and inch as
the members.
8. WAP in CPP to find the product of two matrices using OOP concept.
9. WAP in CPP to sort the details of n students entered by the user in the
order of their marks using OOP concept. Also display the details of
students obtaining highest and third highest marks. Assume n>=3.
10. Explain the relation between constant object and constant function with
example. When do we use static data nrember and static function in a
crass? Exemplify. Submission
29 Deadline: 9th October, 2020
Send your completed assignment to email id
[email protected]
in the form of a pdf file.
Rules:
ƒ The assignment should be strictly handwritten with name and roll no.
marked in each page.
ƒ The file name must be in the following format:
TUT1PUL076BEI001.pdf
It represent the tutorial 1 submitted by student with roll no. 1. Also be very
precise. All texts are case sensitive.
ƒ The student can submit the file until 11:59 PM of the deadline mentioned.
ƒ The email should be in formal structure. If any one out of (subject line,
salutation, body text and sender details) is missing. Email will be ignored
and will not receive acknowledgement. When the email is ignored, the
submission will not be valid.

These rules will be applicable in future submissions too.


If the above mentioned rules are not followed the submission will not be
accepted and marks will be deducted no matter what excuse students make.
30

You might also like