1. Write a program using switch that checks a user-input integer representing the month number and prints the number of days in that month. The program must combine multiple case options wherever...


1. Write a program using switch that checks a user-input integer representing the month number and prints the number of days in that month. The program must combine multiple case options wherever possible.


2. Write a program using switch that checks a user-input character for a vowel or consonant and prints a suitable message. The program must fi rst check whether the entered character is alphabetic (lower or upper).


3. Write a program using while that accepts real numbers from the keyboard, truncates their decimal portion (if any) and prints the sum of their squares. The loop must terminate when the sum has exceeded 100,000.


4. Write a program using while to print a rectangle whose dimensions and the line-drawing character are set by user input.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here