Question: Please do the question in C++ 5. Write a program that prompts the user for their first name, then generates a userid formed by two

 Please do the question in C++ 5. Write a program that

Please do the question in C++

5. Write a program that prompts the user for their first name, then generates a userid formed by two letters and six digits, as follows: - The two letters come from the first name, that is, the 1st initial followed by the second non-vowel letter from the first name. The vowels are the characters a, e, i, o, and u. - The 6-digit portion is generated randomly. Here are sample program inputs/outputs: Enter your first name: Jane You entered: Jane Your userid is: jn123456 Enter your first name: Aaron You entered: Aaron Your userid is: ar654321 Run your program with your first name as input. Here is a template to get started: /* File: userid.cpp This program generates a 2-letter and 6-digit userid Programmer: your name Date: #include #include #include // rand() and srand() #include // time() to get the current time using namespace std; int main(void) { /* You fill in here */ return 0

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!