Question: Write a Java program, called PasswordGenerator, which reads name, surname, city, and age information from the user. Then, your program is supposed to generate a

Write a Java program, called PasswordGenerator, which reads name, surname, city, and age information from the user. Then, your program is supposed to generate a random password based on the following rules: The password should be exactly 8 characters long .The first two characters are the first two characters of user's name . The second two characters are the last two characters of user's surname The fifth character of the password is the ones digit of user's age The sixth character is generated with uppercase of the last character of city .The last two characters are two digit number that is generated randomly Sample Run: Name: Fatma Surname:Serce Age:39 City:Istanbul Generated Password:Face9L70 Assume that user provides valid inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
