You are to implement a password manager program that creates and stores a password entry. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Java code to implement a password manager program that creates and stores a password entry import javautil public class PasswordVault public static vo... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Identify the two types of class social scientists study and articulate how they intersect .
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
What are the "two main lines" of distortion of the view of Marx and what does Lenin think the proper view?
-
A solid cylinder of diameter D, length L, density s falls due to gravity inside a tube of diameter Do. The clearance, (Do D) < < D, is filled with a film of viscous fluid (,). Derive a formula for...
-
In February 2008, Ceramic Crucibles of America was notified by the state of Colorado that the state was investigating the company's Durango facility to determine if there were any violations of...
-
The fluid dynamic characteristics of an airplane flying \(240 \mathrm{mph}\) at \(10,000 \mathrm{ft}\) are to be investigated with the aid of a 1:20 scale model. If the model tests are to be...
-
Book Mart has two employees in 2013. Jessica earns $4,500 per month and Moses, the manager, earns $11,000 per month. Neither is paid extra if they work overtime. Assume the Social Security tax rate...
-
A. What interim reporting requirements would the company have as a corporation? 1. Describe the guidance related to interim financial reporting under generally accepted accounting principles (GAAP)...
-
MARKETING EXCELLENCE Given today's increasingly hectic lifestyles, precooked meals and processed ingredients are becoming the norm for Canadian families to use in preparing their daily meals....
-
Whistleblowing Ayer, an engineer with product development responsibilities, was confronted with an ethical dilemma. He knew that a product being manufactured by the firm was unsafe for consumer use...
-
Two stocks have the following possible outcomes: Outcome 1 234 5 Probability Stock W .10 .20 .40 .20 .10 e. +2% +18% +9% -12% +8% Stock X +25% +10% +14% +3% -10% a. What is the expected return for...
-
The following trial balance of Samson Plc (Samson) is available as of 30 September 2021 Revenue Investment income Property, plant and equipment at carrying value on 1 October 2020 Patents at...
-
QUESTION 12 Under what circumstances, in setting up our Markowitz portfolio optimization, would we want u and to differ from their historical estimates? Use the CAPM model for the expected returns of...
-
Write a Clojure script that generates a fractal image. Implement a macro in Clojure that simplifies debugging by printing variable names and their values. Create a web application in Clojure that...
-
The following information were reported for Golding Inc. for period ended May 2023 and the least square method was used for analysis. Table 1 Units Produced Total costs $ 340 2260 300 2160 400 2300...
-
Explain Comparison and Assignments operators in pythons
-
If a force of F = 50 Ib is applied to the pads at A and C, determine the smallest dimension d required for equilibrium if the spring has an unstretched length of 1 ft. B 1 ft 1 ft F k = 15016/fr 1ft...
-
Write and fully test a class that represents rational numbers. A rational number can be represented as the ratio of two integer values, a and b, where b is not zero. The class has attributes for the...
-
Create a JavaFX application that displays something like the following picture. You should have methods for drawing a monkey face and a hand. Hear no evil See no evil Speak no evil
-
Suppose that we want to store digitized audio information in a binary file. An audio signal typically does not change much from one sample to the next. In this case, less memory is used if we record...
-
In financial reporting of inventory for a manufacturing company, which of the following statements is true or false? Please explain. a. Both fixed and variable manufacturing overhead costs are...
-
Under what conditions may a lithium-ion battery pack for electric vehicles be considered as raw material, work in progress, or a finished good?
-
The following data relate to the manufacturing activities of MilTech company during November: 1. Sales $400,000 2. Purchases $60,700 3. Expenses include: Light and power for manufacturing: $2,700 ...
Study smarter with the SolutionInn App