Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

e. What are notable achievements of the group?

Answered: 1 week ago