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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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