Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are to implement a password manager program that creates and stores a password entry. The program first displays a welcome message and then
You are to implement a password manager program that creates and stores a password entry. The program first displays a welcome message and then asks the user to input the website name, username, associated email, and note regarding this account. All variables should be of string datatype. The program then generates a 10 character password. Every character in the password should either be a random digit between 0 and 9 (0 and 9 inclusive), or a random ASCII character from the ASCII table (represented by a decimal value between 58 to 126 inclusive). The password characters should alternate between digits and characters, and the password must be stored as a string. Hint: Use the methods in the Random class to generate random numbers, the ASCII table along with explicit type casting to convert the generated decimal value (int) to its corresponding character value (char). The website URL should be created based on the website name, and stored in a valid format, i.e., it should be lowercase, and should start with https://www. and end with .com. Output the password item summary comprising of the website URL, website name, username, email, generated password, and note. Follow the sample run of the program given below for formatting the output. Text in green are values entered by the user. Welcome to the Password Vault! Let's create a new password entry. Enter the website name: FACEbook Enter the username: fbUser Enter the email: myemail@gmail.com Add a note: This is a personal social media account *** Item Summary ** ********* Website Name: facebook Website URL: https://www.facebook.com Email: myemail@gmail.com Username: fbUser Password: 7p8m5@4X6h 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Java code to implement a password manager program that creates and stores a password entry import javautil public class PasswordVault public static vo...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