0% found this document useful (0 votes)
35 views

Noc20-Cs07 Week 02 Assignment 03

This document is about an online C++ programming course offered through NPTEL. It provides details on the course content which includes 10 modules covering topics like operator overloading, reference and pointers, default parameters, and dynamic memory management. It also lists out assignments for week 2 including an activity on overloading the + operator for a Complex struct.

Uploaded by

Ravi
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)
35 views

Noc20-Cs07 Week 02 Assignment 03

This document is about an online C++ programming course offered through NPTEL. It provides details on the course content which includes 10 modules covering topics like operator overloading, reference and pointers, default parameters, and dynamic memory management. It also lists out assignments for week 2 including an activity on overloading the + operator for a Complex struct.

Uploaded by

Ravi
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/ 4

02/07/2020 Programming in C++ - Course

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Programming in C++ (course)

Announcements (announcements)

About the Course (https://swayam.gov.in/nd1_noc20_cs07/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

W2_ProgrammingQs-2
Course Due on 2020-02-13, 23:59 IST
outline
Consider the following program and complete the operator overloading
How does an of + operator for struct Complex
NPTEL online such that it matches the given test cases.
course work?
Sample Test Cases
Week 0 Input Output

Week 1 20, -10


Test Case 1 20 -10 -10 20 -10, 20
Week 2 10, 10

Module 6 : 10, 20
Constants and Test Case 2 10 20 30 40 30, 40
Inline
40, 60
Functions
(Lecture 08)
(unit? 10, -20
unit=4&lesson=21) Test Case 3 10 -20 20 -10 20, -10
30, -30
Module 6 :
Constants and
Inline
The due date for submitting this assignment has passed.
Functions
As per our records you have not submitted this assignment.
(Contd.)
(Lecture 09)
(unit?
unit=4&lesson=22)

Module 7 :
Reference and
Pointer
(Lecture 10)

https://onlinecourses.nptel.ac.in/noc20_cs07/progassignment?name=107 1/4
02/07/2020 Programming in C++ - Course

(unit?
unit=4&lesson=23)

Module 7 :
Reference and
Pointer
(Contd.)
(Lecture 11)
(unit?
unit=4&lesson=24)

Module 8 :
Default
Parameters
and Function
Overloading
(Lecture 12)
(unit?
unit=4&lesson=25)

Module 8 :
Default
Parameters
and Function
Overloading
(Contd.)
(Lecture 13)
(unit?
unit=4&lesson=26)

Module 8 :
Default
Parameters
and Function
Overloading
(Contd.)
(Lecture 14)
(unit?
unit=4&lesson=27)

Module 9 :
Operator
Overloading
(Lecture 15)
(unit?
unit=4&lesson=28)

Module 9 :
Operator
Overloading
(Contd.)
(Lecture 16)
(unit?
unit=4&lesson=29)

Module 10 :
Dynamic
Memory
Management
(Lecture 17)
(unit?
unit=4&lesson=30)

https://onlinecourses.nptel.ac.in/noc20_cs07/progassignment?name=107 2/4
02/07/2020 Programming in C++ - Course

Module 10 :
Dynamic
Memory
Management
(Contd.)
(Lecture 18)
(unit?
unit=4&lesson=31)

Lecture
Materials (unit?
unit=4&lesson=32)

Quiz :
Assignment 2
(assessment?
name=105)

W2_ProgrammingQs-
1
(/noc20_cs07/progassignment?
name=106)

W2_ProgrammingQs-
2
(/noc20_cs07/progassignment?
name=107)

W2_ProgrammingQs-
3
(/noc20_cs07/progassignment?
name=108)

Feedback For
Week 2 (unit?
unit=4&lesson=101)

Week 3

Week 4

Week 5

Week 6

Week 7

Week 8

DOWNLOAD
VIDEOS

Text Transcripts

Assignment
Solution

Live Interactive
Session

https://onlinecourses.nptel.ac.in/noc20_cs07/progassignment?name=107 3/4
02/07/2020 Programming in C++ - Course

Books

https://onlinecourses.nptel.ac.in/noc20_cs07/progassignment?name=107 4/4

You might also like