ITC Lab 2.0
ITC Lab 2.0
Fall 2020
Lab 2
cout
Name:
University ID:
Father Name:
Phone Number:
Address:
Semester:
Course:
Task 2
Task 3
*
***
*****
*******
*********
***********
*********
*******
*****
***
*
Task 4
Write a C++ program that make a square on the screen through cout, for the early work your square size
should be 8 * 8
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
Then shift that square one tab to the right on the screen
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
Then try to print that square in the center of the screen, how you will manage that, as every line has 80
characte
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
Task 5
Task 6
a) Print complete table of 2 from 1 to 10 in the same format given below. The sample output is:
2*1=2
2*2=4
2*3=6
………
b) Print table of numbers formatted as follows. (Make use of arithmetic expression where
required)
0 0 0
1 1 1
2 4 8
c) Print the students roll number and marks of subjects and print the total marks of that students;
sample screen is given below:
************
Result Sheet
************