Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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