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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!