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

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!