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
Get step-by-step solutions from verified subject matter experts
