Answered step by step
Verified Expert Solution
Link Copied!

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

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

Students also viewed these Databases questions

Question

Compare levels of resolution in conflict outcomes?

Answered: 1 week ago

Question

Strategies for Managing Conflict Conflict Outcomes?

Answered: 1 week ago