12 July 2022
Assignment :
1) Print the following pattern using while loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
2) Print the following pattern using while loop ( int n = 4 )
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
3) Write a program to print following pattern using for loop.
1
2 2
3 3 3
4 4 4 4
4) Write a program to print following pattern using while loop.
*
* *
* * *
* * * *
5) Print the following pattern using while loop ( int n = 4 )
1
2 2
3 3 3
4 4 4 4
3 3 3
2 2
1
Class work: While loop
30 June 2022:
Assignment :
1) Print the following pattern using while loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
2) Print the following pattern using while loop ( int n = 4 )
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
3) Write a program to print following pattern using for loop.
1
2 2
3 3 3
4 4 4 4
4) Write a program to print following pattern using for loop.
*
* *
* * *
* * * *
6 June 2022:
1) Write a program to get a number using scanner and call function pattern1().
Write a function pattern1() to print following pattern using for loop.
1
2 2
3 3 3
4 4 4 4
2) Write a program to get a number using scanner and call function pattern2().
Write a function pattern2() to print following pattern using while loop.
1
2 2
3 3 3
4 4 4 4
3) Write a program to get a number using scanner and call function pattern3().
Write a function pattern2() to print following pattern using for loop.
*
* *
* * *
* * * *
4) Combine pattern1(), pattern2(), pattern3() in one Java programme.
Class work:
Scanner class, function, while loop, for loop
24 May 2022
Assignment :
1) Write a program to printTriangle Star using while loop.
Input : n = 5 Output: * * * * * * * * * * * * * * *
2) Write a program to print Right Aligned Triangle with * using while loop.
Input : n = 4 Output: * * * * * * * * * * 3) Write a program to print folling triangle pattern using while loop:
Input : n = 7
Output: * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7 Apr 2022:
Assigment:
1) Print the following pattern using while loop ( int n = 4 )
1
2 2
3 3 3
4 4 4 4
3 3 3
2 2
1
2) Print the following pattern using for loop ( int n = 5 )
$$ $$ $$ $$ $$
$$ $$ $$ $$
$$ $$ $$
$$ $$
$$
Save the above programmes on computer.
Do MCQ from runestone Chp 1, 3, 4. Linke is given bleow
14 March 22: Assignment
1) Print the following pattern using while loop ( int n = 4 )
*
* *
* * *
* * * *
2) Print the following pattern using while loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
3) Print the following pattern using while loop ( int n = 4 )
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
4) Print the following pattern using while loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
5) Print the following pattern using while loop ( int n = 4 )
1
2 2
3 3 3
4 4 4 4
3 3 3
2 2
1
6) Print the following pattern using while loop ( int n = 4 )
*
* *
* * *
* * * *
* * *
* *
*
10 March 22: Assignment
1) Print the following pattern using for loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
2) Print the following pattern using for loop ( int n = 4 )
*
* *
* * *
* * * *
3) Print the following pattern using for loop ( int n = 4 )
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
4) Print the following pattern using for loop ( int n = 3 )
1
2 2
3 3 3
08 March 22: Assignment
Complete the assignment (as given on 4 March)
Daily 30min of practice daily
Class Work:
Constructors, parameters, getters, setters.
MCQ for Stirng
4 March 22: Assignment
Write following Programmes:
1) Print the following pattern using for loop ( int n = 4 )
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
2) Print the following pattern using for loop ( int n = 3 )
1
2 2
3 3 3
3) Print the following pattern using for loop ( int n = 4 )
*
* *
* * *
* * * *
4) Print the following pattern using for loop ( int n = 5 )
@ @ @ @ @
@ @ @ @
@ @ @
@ @
@
5) Print the following pattern using for loop ( int n = 6 )
@
@ @
@ @ @
@ @ @ @
@ @ @ @ @
@ @ @ @ @ @
6) Print the following pattern using for loop ( int n = 5 )
@ @ @ @ @
@ @ @ @
@ @ @
@ @
@
@ @
@ @ @
@ @ @ @
@ @ @ @ @
4 March 22 : Class work :
For loops, loop within a loop: printing patterns.