For this lab, use Scanner, data types and multiple methods with parameters and returns to take in
Fantastic news! We've Found the answer you've been seeking!
Question:
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
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date: