Programming Fundamentals
Assignment 3
Due Date: 12 Jan 2021.
Total marks 25
Note: Do not copy code from internet or any other source even across the sections. I will check
the plagiarism of the assignment and it will capture the cheated code from internet or copied from
class fellows. Those who will try they will get some marks for their effort even you do not get
perfect solution. Copied & Shared work will score in negative grading. Assignment should be in
visual Studio. You will send the entire project in zipped file. After submission, no excuse will be
entertained. No assignment will be accepted after due date.
Understanding the Question is part of Assignment. No discussion will be allowed in Class
or via Email. Do it yourself.
Q1. The ancient Greeks classified numbers geometrically. For example, a number was called
“triangular” if that number of pebbles could be arranged in a symmetric triangle as
shown in the figure below. The first ten triangular numbers are 1, 3, 6, 10, 15, 21, 28, 36,
and 45. Write a program that takes as input a number N and prints whether it is
triangular or not. Marks:5
Q2.: Input 10 numbers from the user and print the sum of all numbers which are greater than
10 and less than 1000. marks:2
Q3.Write a program in C++ to display the number in reverse order. You are required to use
For loop only. marks:3
Q4. Display * like picture given below via C++ program. Rows should be taken from user
marks:5
Output should look like this
Assignment 3
Due Date: 12 Jan 2021.
Total marks 25
Note: Do not copy code from internet or any other source even across the sections. I will check
the plagiarism of the assignment and it will capture the cheated code from internet or copied from
class fellows. Those who will try they will get some marks for their effort even you do not get
perfect solution. Copied & Shared work will score in negative grading. Assignment should be in
visual Studio. You will send the entire project in zipped file. After submission, no excuse will be
entertained. No assignment will be accepted after due date.
Understanding the Question is part of Assignment. No discussion will be allowed in Class
or via Email. Do it yourself.
Q1. The ancient Greeks classified numbers geometrically. For example, a number was called
“triangular” if that number of pebbles could be arranged in a symmetric triangle as
shown in the figure below. The first ten triangular numbers are 1, 3, 6, 10, 15, 21, 28, 36,
and 45. Write a program that takes as input a number N and prints whether it is
triangular or not. Marks:5
Q2.: Input 10 numbers from the user and print the sum of all numbers which are greater than
10 and less than 1000. marks:2
Q3.Write a program in C++ to display the number in reverse order. You are required to use
For loop only. marks:3
Q4. Display * like picture given below via C++ program. Rows should be taken from user
marks:5
Output should look like this