CBSE Class 11 Compter Science Flow of Control (1). Students are advised to refer to the attached assignments and practice them regularly. This will help them to identify their weak areas and will help them to score better in examination. Parents should download and give the assignments to their children for practice.
TOPIC: FLOW OF CONTROL- switch …. case STATEMENT
1. Write a program to accept an integer( 1-7) and print the day corresponding to it. (1- Sunday, 2- Monday, ….. ,7- Saturday).
2. Write a menu driven program to input a choice from user. If choice is ‘S’, program should find the volume of a sphere. If choice is ‘C’ it should find volume of a cylinder. Otherwise error message.
3. Write a menu driven program to accept a choice from the user(1-4). If the choice is 1, input a character and check whether it is uppercase, lowercase or other character. If the choice is 2, input a number and check whether it is even or odd. If the choice is 3, input a character(A or S or W or R)and print the corresponding season(A-Autumn, S-Summer, W-Winter, R-Rainy) using switch …case. If the choice is 4, it should exit from the program.
Please click the link below to download CBSE Class 11 Compter Science Flow of Control (1)