Lab 3 Ė Username

 

Write an application that prompts for and reads the userís first and last name (separately). Then print a string composed of the first letter of the userís first name, followed by the first five characters of the userís last name, followed by a random number in the range 10 to 99. Assume that the last name is at least five letters long. Similar algorithms are sometimes used to generate usernames for new computer accounts.