Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this lab, use Scanner, data types and multiple methods with parameters and returns to take in data from the user and print out their
For this lab, use Scanner, data types and multiple methods with parameters and returns to take in data from the user and print out their "new account" information, including the following features:
- main should use Scanner to collect the user's first name, last name, state and zip code (optional to collect more user data) (5 points)
- a email address method* should use their first initial and last name to create an email address for them (Homer Simpson would yield <..n@company got it be in email form at the end) - this email should not be printed by the method, just returned (4 points)
- a password method* should use the users last name, state and zip code to create a password for them (Simpson in Washington 98030 would yield SimpsonWashington98030) - this password should not be printed by the method, just returned (4 points)
- another method (of your choice) should also be created in a similar format to the above - security question? backup account? something else? (4 points)
- After the methods run, a new account summary should print out all of the users data (Full Name, email, password, etc) in a readable and visually formatted way of your choosing (3 points)
* the email method and password method should be parameter-ized, using information passed in from main. For this activity, DO NOT use Scanner inside of these methods
Step 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