Question: C++ 1. 120 points] Given that email addresses are in the following format firstName.lastName@uleth.ca (a) Write a function get EmailAddress that prompts a user to
1. 120 points] Given that email addresses are in the following format firstName.lastName@uleth.ca (a) Write a function get EmailAddress that prompts a user to enter an e-mail ad- dress and returns it. (D) Write a function ext ract that takes as its parameter an e-mai address and extracts from it the firstname and lastname. (c) Write a function capital1ze that takes as its parameters a string and capitalizes its first letter. CPSC 1620 Assignment 7 2 (d) Write a function display that displays the name in the following format: lastName, firstName (e) Write a program that repeatedly prompts the user to enter an e-mail address. The program should then extract from it the first and last names and output them in the previous format. For example, Enter an e-mail addressashley.keeneuleth.ca Keen, Ashley Try again (Y/N)- Y Enter an e-mail addresssean.brown@uleth.ca Brown, Sean Try again (Y/N)N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
