Question: Q4) Develop a program that enters a person's height by a user as an integer. If the height is smaller than 150 cm, the program
Q4) Develop a program that enters a person's height by a user as an integer. If the height is smaller than 150 cm, the program displays "This person is very short". If the height is smaller than 165 cm, the program displays This person is short". If the height is smaller than 180 cm, the program displays "This person has an average height". If the height is smaller than 195 cm, the program displays "This person is tall". Otherwise make the program displays "This person is very tall". Q5) Write a program that ask the user to enter an alphabet and if the alphabet is vowel, then it prints "it is a vowel". If it is a consonant, then it prints it is a consonant using switch case. Example: If the user enter a vowel 'a', then print "it is a vowel". If the user enter a consonant 'c', then print it is a consonant
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
