how can i run program like this question i have prove my code
The program should keep looping to prompt the user for input until hitting a sentinel value -1 for either user name or password. For each round of input, the loop calls the above method to check the password validity according to the rules stated above. Hints: for rules (2) to (5), you may use the matches() method of the String class to check for patterns (defined by regular expressions) in the password. Study p.5-7 if you have no ideas. For (6), you can use the contains() or indexOf(String str) method.
First Run
Enter user name: King Enter password: Hello123
# Password is valid. Enter user name: King Tin
Enter password: 45H000 Password should be within 7 to 10 characters in length.
Password should contain at least one lower-case alphabet.
Password should contain at least one special character.
Enter password: %45H abcde Password should not contain whitespace.
Enter password: %45Habcde Password is valid.
Enter user name: Peggy
Enter password: abc456 Password should be within 7 to 10 characters in length.
Password should contain at least one upper-case alphabet.
Password should contain at least one special character.
Enter password: xyZ789@ Password is valid.
Enter user name: Victoria Enter
password: Naughty1234$
Password should be within 7 to 10 characters in length.
Enter password: Lovely123# Password is valid.
Enter user name: -1 (Program exited) Another Run
Enter user name: OneMore Enter password: 78&OneMore Password should not contain or be the same as user name.
Enter password: 78&TwoMore Password is valid. AST10106 Introduction to Programming 11
Enter user name: Last One
Enter password: $Last One
Password should not contain or be the same as user name.
Password should not contain whitespace.
Password should contain at least one number. Enter password: -1
(Program exited)
that’s my code
package test;
import java.util.Scanner;
class PasswordValidator {
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Explain How I Got My Answer
/in Uncategorized /by developerHow can I explain how I got my answer? The question is in the periodic table there is a periodic pattern in the physical and chemical properties of elements when they are arranged in order of increasing Answer : atomic number
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Find The Deflection Of A Spring That Is Striked By A Block Which Slide
/in Uncategorized /by developerHow can I find the deflection of a spring that is striked by a block which slides on a smooth incline at an angle of 30 degrees, and given a vertical force in Newtons which is applied on the block throughout its motion, a mass in Kg, the block’s velocity when it strikes the spring, and given a spring constant (k) N/m
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Identify The Facts Of The Case How To Outline The Case Procedural Hist
/in Uncategorized /by developerThe link below is the only thing that I have on the case
https://law.justia.com/cases/federal/district-courts/florida/flsdce/9:2012cv80165/394852/19/
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Run Program Like This Question I Have Prove My Code The Program Should
/in Uncategorized /by developerhow can i run program like this question i have prove my code
The program should keep looping to prompt the user for input until hitting a sentinel value -1 for either user name or password. For each round of input, the loop calls the above method to check the password validity according to the rules stated above. Hints: for rules (2) to (5), you may use the matches() method of the String class to check for patterns (defined by regular expressions) in the password. Study p.5-7 if you have no ideas. For (6), you can use the contains() or indexOf(String str) method.
First Run
Enter user name: King Enter password: Hello123
# Password is valid. Enter user name: King Tin
Enter password: 45H000 Password should be within 7 to 10 characters in length.
Password should contain at least one lower-case alphabet.
Password should contain at least one special character.
Enter password: %45H abcde Password should not contain whitespace.
Enter password: %45Habcde Password is valid.
Enter user name: Peggy
Enter password: abc456 Password should be within 7 to 10 characters in length.
Password should contain at least one upper-case alphabet.
Password should contain at least one special character.
Enter password: xyZ789@ Password is valid.
Enter user name: Victoria Enter
password: Naughty1234$
Password should be within 7 to 10 characters in length.
Enter password: Lovely123# Password is valid.
Enter user name: -1 (Program exited) Another Run
Enter user name: OneMore Enter password: 78&OneMore Password should not contain or be the same as user name.
Enter password: 78&TwoMore Password is valid. AST10106 Introduction to Programming 11
Enter user name: Last One
Enter password: $Last One
Password should not contain or be the same as user name.
Password should not contain whitespace.
Password should contain at least one number. Enter password: -1
(Program exited)
that’s my code
package test;
import java.util.Scanner;
class PasswordValidator {
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Solve This Problem
/in Uncategorized /by developerHow can I solve this problem?Delta, Inc. has a stock price of $50. In the fiscal year just ended, dividends were $2.00. Earnings per share and dividends are expected to increase at an annual rate of 8 percent. The risk-free rate is 4 percent, the market risk premium is 6.4 percent and the beta on Delta’s stock is 1.25. Delta’s target capital structure is 40% debt and 60% common equity. Delta’s tax rate is 40 percent.New common stock can be sold to net $40 per share after flotation costs. Delta can sell bonds that mature in 25 years with a par value of $1,000 and an 8% coupon rate paid annually for $960. Calculate the before-tax interest rate on new debt financing
Year Cashflow0-960180280380480580680780880980108011801280138014801580168017801880198020802180228023802480251080 YTM=8.387% Cost of debt
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Summarize This Paragraph Another Emotion Related To Awkward Feelings I
/in Uncategorized /by developerHow can I summarize this paragraph
Another emotion related to awkward feelings is guilt, which makes you feel bad about your behavior and motivates you to repair the social damage: to apologize, clean up a spill, or pay for something you have damage. All of these responses to your social missteps help you assure others that you understand what you have done wrong, you feel remorseful , and you are taking action to make thing right. Both embarrassment and guilt help us recover from awkward acts because they show others that we “get it”. that is, there are outward signs that we are aware that we have violated a social rule and we feel bad about any inconvenience to others. [Source: Ty Tashiro, AWKWARD: The science of Why We’re Socially Awkward and Why that’s awesome, page 74]
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Utilize The Black Scholes Option Pricing Model To Compute The Price Of
/in Uncategorized /by developerHow can I utilize the Black-Scholes Option Pricing model to compute the price of a European call and an American call when an option on a non-dividend paying stock when the stock price is $67, the exercise price is $61, the risk-free rate is 0.5%, the market volatility is 30% and the time to maturity is 6 months. Using the Black-Scholes Model?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can I Write Code To Vhdl I Have Lab 7 Segment Led Display Decoder That Takes
/in Uncategorized /by developerhow can i write code to vhdl i have lab 7-segment led display decoder that takes 4- bits binary input and display the equivalent hex number on the 7-segment display alphanumric digits 0-f which correspond to number 0-15 in hex ,are to be displayed
z 7 bit a 4 bit Code is below _________________library IEEE;use IEEE.std_logic_1164.all ;entity seven_seg isport ( a: in std_logic_vector( 3 downto 0);z : out std_logic_vector( 6 downto 0) );…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can Implementing Supply Chain Management Add Value For Customers
/in Uncategorized /by developerHow can implementing supply chain management add value for customers
A supply chain is a complex and dynamic representation of demand and supplynetwork. It is process in the organisation that involves of moving product or services fromsupplier to customer. It…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
How Can Inadequate Or Lack Of Access To Communication Technology The Digital Div
/in Uncategorized /by developerHow can inadequate or lack of access to communication technology (the digital divide) lead to care inequality in the emerging e-health model? What are the social and ethical issues associated with modern health IT?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"