Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer using C++ Objective: Your boss has asked you to write a short program to automatically generate email addresses for a list of employees
Please answer using C++
Objective: Your boss has asked you to write a short program to automatically generate email addresses for a list of employees and store the email addresses and employee data in text format. The list of employees has been provided in the file called employeeNames.txt. The file can be downloaded by using the following command: wget tars.clarkson.edu/cs141/lab7/employeeNames.txt Write a program called lab7.cpp that reads through employeeNames.txt file and generates an email address by using the first letter of the first name and at most 7 letters of the last name. For example: - If the employee name is Jane Goodwind, the email address becomes jgoodwin@company.com - The email address must be in lower case. You do not need to handle the case where more than one person can have the same email address Your program must use a function that you create to take the person's first name and last name and generate an email address Your program must then store the person's name and email address in text format as follows, if the person's name is Jane Goodwind and their email address is jgoodwin@company. com then the output should be: Jane Goodwind jgoodwin@company.com Each person in your input file and their emails should be stored in a separate line in a file called employeesData.txtStep 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