Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

49. In Prob. 47, let C = BAB. Show that CAC = C.

Answered: 1 week ago