Question: Obtain a character input from the user using the scanf function in C. Use an if-else, if-else or an if-else construct to check if the

 Obtain a character input from the user using the scanf function

Obtain a character input from the user using the scanf function in C. Use an if-else, if-else or an if-else construct to check if the user's single character input is an English vowel character alphabet. Display the message, accord- ingly, based on the examples given. You have to show a minimum of 3 runs of program. INTERACTIVITY NOTE: You need to implement an interactive session. Until the user desires to quit, he/she needs to continue the program. He/She needs to be given 3 chances if he/she enters wrong inputs. Example: 1st run of the program is provided, you need to run at least three different times. Also observe the interactivity. Enter your input: a You entered a vowel character: a Press 'q' to quit or 'y' to continue: Y Enter your input: e You entered a vowel character: e Press 'q' to quit or 'y' to continue: k Invalid choice! Enter 'q' or 'y' :P Invalid choice! Enter 'q' or 'y' :t Invalid choice! Enter 'q' or 'y' :r Bye !! Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!