Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA DO IN JAVA DO DO IN JAVA DO IN JAVA Benjamin Houdeshell March 9, 2021 1 You will create a secure password program. Ask
JAVA DO IN JAVA DO
DO IN JAVA DO IN JAVA
Benjamin Houdeshell March 9, 2021 1 You will create a secure password program. Ask a user to enter their first name and then their last name on the same line. (Allow for mixed case) Ask the user a security question: - "What is your favorite color?" - Store the result in a variable called "FavColor". Get the fist and last character from "FavColor". Assign the values to "colorFirst" & "color Last". Create a single three digit random integer from 100 to 122, inclusively. Get the ASCII integer value of the letter "Z". Assign this to variable "favLetter". Create the password string that consists of the upper case letter of the last letter of their first name, the random number, the first three letters of their last name in lower case, the integer value of 'favLetter, the ASCII character of the random integer, and the first and last character of the security question answer. Example: someone with the name "Thomas Jefferson" and favorite color "red" might have a password that looks like S110jef66xrd. Your print out should then include the person's name and new password in the following format: Thomas Jefferson's password is: "S110jef66xrd" Benjamin Houdeshell March 9, 2021 1 You will create a secure password program. Ask a user to enter their first name and then their last name on the same line. (Allow for mixed case) Ask the user a security question: - "What is your favorite color?" - Store the result in a variable called "FavColor". Get the fist and last character from "FavColor". Assign the values to "colorFirst" & "color Last". Create a single three digit random integer from 100 to 122, inclusively. Get the ASCII integer value of the letter "Z". Assign this to variable "favLetter". Create the password string that consists of the upper case letter of the last letter of their first name, the random number, the first three letters of their last name in lower case, the integer value of 'favLetter, the ASCII character of the random integer, and the first and last character of the security question answer. Example: someone with the name "Thomas Jefferson" and favorite color "red" might have a password that looks like S110jef66xrd. Your print out should then include the person's name and new password in the following format: Thomas Jefferson's password is: "S110jef66xrdStep by Step Solution
There are 3 Steps involved in it
Step: 1
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