Question
Create a program where the user is asked how many letters in their first name, and use that answer for the SIZE of a character
Create a program where the user is asked how many letters in their first name, and use that answer for the SIZE of a character array. Have the user enter each letter of their first name, one letter at a time. Validate that they entered a letter and that it's lower case. Convert each letter to upper case. After all of the letters have been entered, display the name.
Then, add a new function called quiz, which will pass the user's name to it. Ask the user two questions, which can only be answered with a y or Y for yes and an n or N for no. Invalidate their answers if they enter something else. After an acceptable answer, display a message with their name, telling them whether they're right or wrong.
Write the program in C++
Step 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