Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++. Using if and else if statements no fancy stuff just the basics to get it done. Attach your program in an email with
In C++. Using if and else if statements no fancy stuff just the basics to get it done.
Attach your program in an email with the subject: HW3 Sign your email submission with your full name Name the program HW3.cpp. Submit a hard copy of your program in class. Make sure you have your name and number on the print-out. The program is due Wednesday March 13 at 2:30 pm. No late submissions will be accepted If your program does not compile, your submission is considered void HW3. Write a program that does the following Prompt the user to input their first name. You should remember/save/read the first letter of their first name. As a result you should deal with the left over data in the keyboard buffer so that your next reads in your program works properly . Prompt the user to input an alphabetical letter . Check to see if the user indeed entered an alphabetical letter, if not check the following conditions, output the proper message and end the program If the user enters any of five arithmetic operators, your message should be Error: The character is an arithmetic operator, not an alphabetical letter. Program aborted . If the user enters a digit, your message should be Error: The character is a digit, not an alphabetical letter. Program aborted . For any other invalid input, your message should be Error: The character is not an alphabetical letter. Program aborted If the user has entered an alphabetical letter. You should check the following . Your program should determine whether the user has inputted an uppercase or lowercase letter. . Your program should determine whether the user has inputted a vowel or a consonant. . Your program should also determine whether the letter matches the first initial of the user regardless of the case of the letter. Your program should determine whether the letters before and after the input letter are vowels or consonants. Obviously you have to watch for A, a, Z, and z lettersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started