Question: C++ ASCII Codes for the Characters. Write a program named Lab2b.cpp. The program asks the user to enter a character from the keyboard. The program
C++
ASCII Codes for the Characters. Write a program named Lab2b.cpp. The program asks the user to enter a character from the keyboard. The program then prints the character and the ASCII code for that character. Yes, you can ask the user for input on this one. The output (including user's response) should look as follows. ASCII Code Finder Please enter a character from the keyboard: # You entered # and the ASCII code for that is 35. You should use C++-style of casting. That is, use the keyword static_cast if casting is necessary. Write a program named vowel.cpp as follows. The program prompts the user for a lower case letter. If the user enters a lower case letter, the program determines if the letter is a vowel or not. If the letter is a vowel, it prints, for example, Youve entered a vowel letter i. If the letter is a lower case letter but not a vowel, it finds the first vowel following the letter in the alphabets. If there is one, it prints, for example, Youve entered a non-vowel letter, j. The first vowel letter after j is o. Or Youve entered a non-vowel letter, y. If the user has not entered a lower case letter, the program prints, Ill only take a lower case letter.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
