Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAMMING Task You are an entry-level programmer at a small start-up software company that serves as contractors for larger software security companies. As a

JAVA PROGRAMMING

Task

You are an entry-level programmer at a small start-up software company that serves as contractors for larger software security companies. As a new comer to the company, your team lead has assigned you the task is to create a simple little program that will test the strength of a password based on the following information. Your code will later be added to a larger software application for some of the companys software clients. Your team lead has given to you the following criteria for developing and implementing your code in Java. To begin, the password must have between 5 and 7 characters:

1) At least one (1) upper case letter

2) At least one (1) lower case letter

3) At least one (1) digit (numbers 0 9)

If the password is at least 5 characters, but no more than 7 characters and:

1) Meets all three criteria then the password is Excellent

2) Meets only two criteria then the password is Fair

3) Meets only one criteria then the password is Poor

Execution

1) Input program must ask the user to input the password

2) Logic program must allow the user to continue to input passwords until he/she chooses to quit using the program.

3) Output the program must display: a. The password

b. The strength of the password (Excellent, Fair or Poor)

c. An error message if the password is not between 5 and 7 characters.

3. Hints and Learning Outcomes

This assignment makes use of basic elements that you learned in CSC 1301 and CSC 1302:

Input/output statements

Arithmetic operators

Assignment statements

Relational and logical operators

Control structures

Data structures

4. Submission Process

Submit only the .java file. Name the file using the naming convention:

lastname_firstname.java (for example smith_joe.java).

If you currently do not have an integrated development environment (IDE) or compiler that you enjoy working with, you can download Jgrasp for free at http://www.jgrasp.org/.

5. Sample execution

Ensure that you give users appropriate input/output messages; that your program executes; and that you have tested your program with various test cases (not just the ones from the sample execution). Programs not compiling and executing will receive very few points. Also, be sure to document your code where appropriate.

This is a sample execution of a program once it is compiled and executed.

image text in transcribed

G lest_cynthia.java G|CSC 2920 Spring 2021\Programming Assignment -jGRASP CSD (Java) Eile Edit View Build Project Settings Tools Window Help 8.8 XNDA DO DI LAU +&8 1 Compile Messages IGRASP Messages Run I/O Interactions End ----GRASP exec: java lest_cynthia Please input your code. Clear 1234567 Help The orginal code is: 1 2 3 4 5 6 7 The password is poor Would you like to continue or try again (V/y)? y Please input your code. aqwerty The orginal code is: a qwerty The password is poor > Would you like to continue or try again (Y/y)? y Please input your code. 12 Your code does not have between 5 and 7 characters. Would you like to continue or try again (V/y)? Please input your code. QA123e" The orginal code is: Q A 1 2 3 * The password is excellent Would you like to continue or try again (Y/y)? > n ----GRASP: operation complete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions