Question: Using C++, Write a function that prompts the user to enter his or her ID (number only) in string. It should repeatedly ask for the

Using C++,

Write a function that prompts the user to enter his or her ID (number only) in string. It should repeatedly ask for the ID until the entry has 7 digits (digits only and exactly 7). Return the input as integer. Run your function to make sure it produces the right answer and be sure to post a screen shot or show the output. Here is some code to get you started.

int getID()

{

string input;

}

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!