Write a program that asks a user to enter a first name, a last name, and a year, and construct an account ID in the format of: firstname.lastnameYY where the field “firstname” is user’s first name allowing no more than (first) five letters; the field “lastname” is user’s last name allowing no more than (first) six letters; and the filed “YY” is the lower two digits of the year. For example: first name entered: Michael last name entered: Richmond year entered: 1985  the constructed account ID will be:  Micha.Richmo85

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
100%

Write a program that asks a user to enter a first name, a last name, and a year, and
construct an account ID in the format of:
firstname.lastnameYY
where the field “firstname” is user’s first name allowing no more than (first) five letters;
the field “lastname” is user’s last name allowing no more than (first) six letters; and the
filed “YY” is the lower two digits of the year. For example:
first name entered: Michael
last name entered: Richmond
year entered: 1985 
the constructed account ID will be: 

Micha.Richmo85

Write a program that asks a user to enter a first name, a last name, and a year, and
construct an account ID in the format of:
firstname.lastnameYY
where the field "firstname" is user's first name allowing no more than (first) five letters;
the field "lastname" is user's last name allowing no more than (first) six letters; and the
filed "YY" is the lower two digits of the year. For example:
first name entered: Michael
last name entered: Richmond
year entered: 1985
the constructed account ID will be:
Micha.Richmo85
Transcribed Image Text:Write a program that asks a user to enter a first name, a last name, and a year, and construct an account ID in the format of: firstname.lastnameYY where the field "firstname" is user's first name allowing no more than (first) five letters; the field "lastname" is user's last name allowing no more than (first) six letters; and the filed "YY" is the lower two digits of the year. For example: first name entered: Michael last name entered: Richmond year entered: 1985 the constructed account ID will be: Micha.Richmo85
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Methods of StringBuilder class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning