Write a java program to read a string from the user

Assignment Help Computer Engineering
Reference no: EM132201065

Question :

Write a Java program to read a string (a password) from the user at the command line and then check that the password conforms to the corporate password policy.

The policy is:

1) the password must be at least 8 characters

2) the password must contain one upper case letter

3) the password must contain one digit.

Use a while loop to step through the string.

Output "Password OK" if the password conforms, otherwise output "Password does not conform to the policy."

Reference no: EM132201065

Questions Cloud

Create your own text file to test your program : Write a Java program which reads a text file and writes the content into a new file. Create your own text file to test your program.
Hand calculate a one-sample t test : Rex's Flower Shop advertised fresh cut roses that last longer than other roses. The mean vase life for a rose is 8 days.
Determine the quality of information : Explain how the (r, w) probabilities determine the quality of information: for perfect, for worthless, and imperfect better than pure chance information.
Calculator to convert from infix notation to postfix : Write a java program that simulates a calculator to convert from infix notation to postfix notation and vice versa.
Write a java program to read a string from the user : Write a Java program to read a string from the user at the command line and then check that the password conforms to the corporate password policy.
Explain operational mechanics of the federal reserve system : Explain the operational mechanics of the Federal Reserve System in terms of its structures and governance using specific details.
Evaluate a null hypothesis based on analysis of data : a. State the null hypothesis. b. State the alternative hypothesis.
In what ways do the media help promote popular government : In what ways do the media help promote popular government? What are the responsibilities of the media? Are they living up to their responsibilities?
Write a lc-3 assembly program to perform division : Write a LC-3 assembly program to perform division. The integers (between 1 and 9) for the division are provided by the user in response to a prompt.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Build classifier for the given data set and write a report

COMP5318 - Machine Learning and Data Mining Assignment. Your task is to determine / build classifier for the given data set and write a report

  Comapre the organizing function of management

Evaluate the organizing function of management as it relates to at least two of the following organizational resources.

  Define the function graph

Define the function graph(lst) which uses the function point to plot one line with point for each value of the list lst show.

  Design a class called numdays

Design a class called NumDays. The class's purpose is to store a value that will convert the number of worked hours to a number of days.

  Convert a fahrenheit temperature to celsius or vice versa

Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa.

  List and describe what is available at five web sites

Using a Web browser, search for the term CERT. List and describe what is available at five Web sites?

  Prompt the user for a temperature in degrees celsius

Prompt the user for a temperature in degrees Celsius, then convert that temperature to degrees Kelvin?

  Huffman coding for compression

Huffman coding for compression - Starting from the beginning of the bit sequence, convert each sequence of 8 consecutive bits into 1 byte. If the number of bits is not a multiple of 8, pad the end of the bit sequence with 0s.

  Research and write a short description of internet

research and write a short description of internet technologies 3-4 pages not including cover page or reference list

  Determine how long the heater should be kept on

The water in a 40-L tank is to be heated from 15°C to 45°C by a 6-cm-diameter spherical heater whose surface temperature is maintained at 85°C.

  Given a line segment with endpoints 2 5 and 9 15 provide

given a line segment with endpoints 2. 5 and 9 15 provide the equation for that line segment using a parameterized

  Write a function to build a dictionary from two lists

One of the lists should contain elements that will serves as keys and the other list should contain elements that will serve as values.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd