Noc20-Cs53 Week 04 Assignment 02
Noc20-Cs53 Week 04 Assignment 02
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(course)
Announcements (announcements)
Week 4
The due date for submitting this assignment has passed.
Lecture 8 : As per our records you have not submitted this assignment.
Computing Sample solutions (Provided by instructor)
Mathematical 1 #include <iostream>
Functions Part 2 #define repeat(x) for(int _iterator_i = 0, _iterator_limit = x; _iterat
1 : Taylor 3 #define main_program int main()
4 #include <cmath>
series (unit? 5 using namespace std;
unit=57&lesson=58) 6 main_program{
7 int n;
Lecture 8 : 8 double x;
9 cin >> n >> x;
Computing 10
Mathematical 11 double sum = 1, term = 1;
Functions Part 12
13 for(int i=0; i<n-1; i++){
2 : Numerical 14 // sum : of terms 0 through i
integration 15 // term : ith term, counting from 0.
https://onlinecourses.nptel.ac.in/noc20_cs53/progassignment?name=174 1/4
02/07/2020 An Introduction To Programming Through C++ - Course
Lecture 8 :
Computing
Mathematical
Functions Part
4 : Newton
Raphson
Method (unit?
unit=57&lesson=61)
Lecture 9 :
Loops in
various
applications
Part 1 : Loops
in various
applications
brute force
algorithms
(unit?
unit=57&lesson=62)
Lecture 9 :
Loops in
various
applications
Part 2 : Finding
Pythagorean
Triples (unit?
unit=57&lesson=63)
Lecture 9 :
Loops in
various
applications
Part 3 :
Modelling a
system:
bargaining
(unit?
unit=57&lesson=64)
Lecture 9 :
Loops in
various
applications
Part 4 :
Simulating a
water tank
(unit?
unit=57&lesson=65)
https://onlinecourses.nptel.ac.in/noc20_cs53/progassignment?name=174 2/4
02/07/2020 An Introduction To Programming Through C++ - Course
Lecture 9 :
Loops in
various
applications
Part 5 :
Arithmetic on
very large
numbers (unit?
unit=57&lesson=70)
Quiz : Week 4
Quiz
(assessment?
name=173)
Week 4
Programming
Assignment 1
(/noc20_cs53/progassignment?
name=174)
Week 4
Programming
Assignment 2
(/noc20_cs53/progassignment?
name=175)
Download
Videos (unit?
unit=57&lesson=180)
Weekly
Feedback
(unit?
unit=57&lesson=192)
Week 5
Week 6
Week 7
Week 8
Week 9
Week 10
Week 11
Week 12
Text Transcripts
https://onlinecourses.nptel.ac.in/noc20_cs53/progassignment?name=174 3/4
02/07/2020 An Introduction To Programming Through C++ - Course
https://onlinecourses.nptel.ac.in/noc20_cs53/progassignment?name=174 4/4