NPTEL An Introduction To Programming Through C++ Assignment 1 Answers 2023
NPTEL An Introduction To Programming Through C++ Assignment 1 Answers 2023 :- Here All The Questions and Answers Provided to Help All The Students and NPTEL Candidate as a Reference Purpose, It is Mandetory to Submit Your Weekly Assignment By Your Own Understand Level.
Are you looking for the Assignment Answers to NPTEL An Introduction To Programming Through C++ Assignment 1 Answers 2023? If Yes You are in Our Great Place to Getting Your Solution, This Post Should be help you with the Assignment answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “NPTEL An Introduction To Programming Through C++ Week 1 Solution 2023”
Table of Contents
An Introduction To Programming Through C++
From My Side : This course provides an start to problem solving and programming using the C++ programming language. The topics tallying together occurring:
Basic programming notions. Control flow, variables and assignments statements, conditional be swift, looping, action calls including recursion. Arrays and structures. Elementary aspects of classes. Heap memory.
Program design. How human beings solve problems manually. Strategies for translating calendar strategies to computer programs. Organizing large programs into units such as functions and classes. Introduction to assertions and invariants.
Programming applications. Arithmetic going a propos for polynomials, matrices. Root finding. Sorting and searching. Design of editors and simulators, including graphical editors. Elementary buoyancy. A rudimentary graphics system will be discussed.
Standard Library of C++. The string, vector and map classes.
C++ is an slant-oriented programming language which gives a sure structure to programs and allows code to be reused, lowering fee costs
This course provides an introduction to problem solving and programming using the C++ programming language. The topics include:
- Basic programming notions. Control flow, variables and assignments statements, conditional execution, looping, function calls including recursion. Arrays and structures. Elementary aspects of classes. Heap memory.
- Program design. How human beings solve problems manually. Strategies for translating manual strategies to computer programs. Organizing large programs into units such as functions and classes. Introduction to assertions and invariants.
- Programming applications. Arithmetic on polynomials, matrices. Root finding. Sorting and searching. Design of editors and simulators, including graphical editors. Elementary animation. A rudimentary graphics system will be discussed.
- Standard Library of C++. The string, vector and map classes.
CRITERIA TO GET A CERTIFICATE
This course can have Associate in Nursing unproctored programming communication conjointly excluding the Proctored communication, please check announcement section for date and time. The programming communication can have a weightage of twenty fifth towards the ultimate score.
- Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
- ( All assignments in a particular week will be counted towards final scoring – quizzes and programming assignments).
- Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam – out of 100
- Proctored Exam score =50% of the proctored certification exam score out of 100
UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50.
CHECK HERE OTHERS NPTEL ASSIGNMENTS ANSWERS
BELOW YOU CAN GET YOUR NPTEL An Introduction To Programming Through C++ Assignment 1 Answers 2023? :
NPTEL An Introduction To Programming Through C++ Assignment 1 Answers 2023
Q1. What is blankA?
Answer:- left(90)
Q2.What is blankB?
Answer:- forward(10)
Q3. What is blankC?
Answer:- right(90)
Q4. What is blankD?
Answer:- forward(10)
Suppose you decide to represent the cards in a standard deck using the numbers 1 through 52. So for this, the cards are arranged so that the clubs come first, then the diamonds, then the heards and then the spades. Also within a suit, the order of the cards is ace, then the cards 2 through 10, then the jack, then the queen, then the king. So after arranging the cards in this manner, the ith card is assigned thenumber i. Thus the king of spades will get the number 52, and the ace of clubs the number 1.
Q5. What number does the 9 of spades get?
Answer:- 48
Q6. Suppose some card has number n. I would like to know if it is a diamond. Which of the following tests will tell me if this is the case?
Answer:- b – ceiling(n/13) = 2
Suppose I choose to represent a number using floating point, in 32 bits, using the representation discussed in the lecture. Which of the following are correct?
Q7. I will be able to exactly represent the number 100000000 (100 million).
Answer:- a – Yes
Q8. I will be able to approximately represent the number 1000000000000 (one trillion)
Answer:- b – No
Q9. I will be able to exactly represent the number 1000.
Answer:- a – Yes
Q10. I will be able to exactly represent the number 1/3 (one third).
Answer:- a – Yes
Q11. Consider the multiplication instruction defined in the lecture.
Suppose now that I have a program 57 100 200 300 57 300 200 400.Suppose initially the 6, 7, 8, 9 are stored in addresses 100, 200, 300, 400 respectively. After executing the 2 instructions given above, what would be present at address 400?
Answer:- 294
Q12. What most closely matches A?
Answer:- d – H
Q13. What most closely matches B?
Answer:- b- F
NPTEL An Introduction To Programming Through C++ Programming Assignment 1 Answers 2022
Programming Assignment 1.1
Q1. Write a program that reads in numbers m, n and prints the letter X (capital X) m times followed by the letter Y (capital Y) n times, all in one line. Don’t write the #include < simplecpp > statement at the beginning of your code, directly start the main_program
Code:-
int main() {
int m,n;
cin>>m>>n;
while(m--)
cout<<"X";
while(n--)
cout<<"Y";
return 0;
}
Q2. Write a program that reads in a number m and prints a ‘*’ on m consecutive lines, followed by m+1 ‘*’s on a single line. The result should look like the letter L made out of stars. You can go to a new line in the output using cout << endl; .Don’t write the #include < simplecpp > statement at the beginning of your code, directly start the main_program
Code:-
main_program{
int m;
cin>>m;
repeat(m){
cout<<"*"<<endl;
}
repeat(m+1){
cout<<"*";
}
}
Yhaa You have done it but next? if YOU Want to your Others NPTEL An Introduction To Programming Through C++ Assignments Answers Then Follow US HERE and Join Telegram.