Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions