



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This assignment was given by Dr. Jyoti Lokesh at Biju Patnaik University of Technology, Rourkela for Computer Programming course. It includes: Computer, Programming, Display, Hourglass, Pattern, Diamond, Nepal, Flag, Ladder, Negative, Number
Typology: Exercises
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Course No. CS Course Title Computer Programming
Due Date: Monday April 16, 2012 at 12:00pm
In this assignment you have to write a program that starts by displaying the following menu to user:
Select one of the following choices:
When the user selects choice 1, you will ask him/her for the size of pattern and the symbol to be used in the pattern. If user enters a negative number, you should prompt him and re-take input.
For example: If the user enters 11 for size and * for symbol then the following is displayed.
If the user enters 15 for size and # for symbol then the following is displayed.
When the user selects choice 2, you will ask him/her for the size of pattern and the symbol to be used in the pattern. If user enters a negative number, you should prompt him and re-take input.
For example: If the user enters 11 for size and & for symbol then the following is displayed.
When the user selects choice 4, you will ask him/her for the size of pattern and the symbol to be used in the pattern. If user enters a negative number, you should prompt him and re-take input.
For example: If the user enters 5 for size and 3 for number of rungs and * for symbol then the following is displayed.
Allow the user to repeat the program as many number of times as he/she wants.
Your program should be properly commented and should display stuff nicely. There are marks for good coding style and readability.