ssume you are working for a company and given the task to build an Email Registration Program. The email registration program functions as follows. • Prompt the user four things: first name, last name, security question answer, and birthyear. o Example: Enter first name: LeBron Enter last name: James (Security Question) Favorite car maker: Bentley Enter birth year: 1984 • Generate a default Kean email address based on the first name and last name. o The default Kean email address consists of the first letter of the first name, a period, the entire last name all in lower case appended with @kean.edu. o Example: LeBron James → l.james@kean.edu • Generate a default password based on the last name, security question answer, and birthyear. o The default password is a sequence of 3 letters from last name, birthyear, and 3 letters from the security question answer all in upper case. o Example: LeBron, 1984, Bentley → LEB1984BEN • Display the email information with first name, last name, email address, and password. o Example: LeBron James Kean email: l.james@kean.edu Kean password: LEB1984BEN
Assume you are working for a company and given the task to build an Email Registration Program. The
email registration program functions as follows.
• Prompt the user four things: first name, last name, security question answer, and birthyear.
o Example:
Enter first name: LeBron
Enter last name: James
(Security Question) Favorite car maker: Bentley
Enter birth year: 1984
• Generate a default Kean email address based on the first name and last name.
o The default Kean email address consists of the first letter of the first name, a period, the
entire last name all in lower case appended with @kean.edu.
o Example: LeBron James → l.james@kean.edu
• Generate a default password based on the last name, security question answer, and birthyear.
o The default password is a sequence of 3 letters from last name, birthyear, and 3 letters
from the security question answer all in upper case.
o Example: LeBron, 1984, Bentley → LEB1984BEN
• Display the email information with first name, last name, email address, and password.
o Example:
LeBron James
Kean email: l.james@kean.edu
Kean password: LEB1984BEN
![main
String, String
Method Body
String, String, String, String
String
defaultinfo (emai)
resuitScreen
String, String, int
String
Method Body
Method Body
defaultinfo (password)
Method Body
Figure 1. Structure chart
public static void main(String[] args) {
// Declare variables
// Prompt user: firstname, lastname, birthyear, security question
// call email registration method
// call password method
// call result screen method
// email registration method (Overloading methods)
public static String defaultInfo(String first, String last) {
// password method (Overloading methods)
public static String defaultInfo(String last, String question, int year) (
// result screen method
public static void resultScreen(String first, String last, String email, string pw) {
===");
System.out.printin("=====
System.out.println(first +"" + last);
System.out.printin("Kean email:
System.out.println("Kean password: "+ password);
System.out.println("=====
+ email);
==========");
Figure 2. Method headers
Enter first name: LeBron
Enter last name: James
(Security Question) Favorite car maker: Bentley
Enter birth year: 1984
Enter first name: Elon
Enter last name: Musk
(Security Question) Favorite car maker: Tesla
Enter birth year: 1971
LeBron James
Kean email: 1.james@kean.edu
Kean password: LEB1984BEN
Elon Musk
Kean email: e.muskakean.edu
Kean password: ELO1971TES](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ffd22a63a-e9cf-44bb-91af-1197ae66f7e0%2F4474dd14-aca8-4487-8238-d8d1fbf43b19%2Flcmkxv_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)