Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
Java All : Pattern Printing


Exam Paper Problems

Patterns: ABCDE-ABCD-ABC-AB-A & B-LL-UUU-EEE #7196

( As In Exam - ICSE2018 )

Write a menu driven program to display the pattern as per user’s choice.

Write a menu driven program to display the pattern as per user’s choice.
Pattern 1 Pattern 2
ABCDE       B
ABCD         LL
ABC            UUU
AB              EEEE
A
For an incorrect option, an appropriate error message should be displayed.

Floyd’s Triangle and ICSE as pattern #7319

( As In Exam - ICSE2016 )

Using the switch statement, write a menu driven program for the following:

Using the switch statement, write a menu driven program for the following:
(i) To print the Floyd’s triangle
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
(ii) To display the following pattern
I
I C
I C S
I C S E
For an incorrect option, an appropriate error message should be displayed.



Exam Paper Problems:2 
Back