Create a GUI for changing a password

Assignment Help Programming Languages
Reference no: EM133577503

Assignment

Programming Assignment - Password Validity

The program can be written in JAVA or Python or C# or using (JavaScript and HTML/CSS).

Create a GUI for the following problem:

Create a GUI for changing a password.

There should be an entry box for user id. User Id can be anything like your email. No check or validation required. Cannot be blank.

There should be a Current Password entry box as shown in the picture below.

When you enter the password, password should not be visible (.....) as shown in the picture below.

There should be a New Password entry box as shown in the picture below.

When you enter the New password, password should not be visible (.....) as shown in the picture below.

There should be a Confirm Password entry box where you should re-enter the new password. Here also the password should not be visible.

There should be a BUTTON called "Change Password" as shown in the picture below.

The GUI does not have to be an exact match of the GUI below. You can have variations of the GUI as long as all functionalities are met.

When the button is clicked the password validity is checked based on the following conditions:

The current password and the new password should not be the same.
The password string entered in the New password box should be the same as the password string entered in the confirm New password box
The password should be at least 12 characters strong.
The password should contain EXACTLY TWO upper case letters.
The password should have EXACTLY TWO digits.
The password should contain EXACTLY ONE special character like $ or ! or %.
The password should not contain any spaces.
The password should contain all remaining lower case letters.

Read in a file oldpasswd.txt which has 10 old passwords stored in plain text including the current password.

Need to make sure that the new password entered in the box is not one of these old passwords.

The file oldpasswd.txt should have only 10 lines. If there are more than 10 lines an exception should be created.

The first line in the oldpasswd.txt should be the current password.

So what you entered in the GUI as current password has to match the password in the first line.

Now the new password once created and once accepted now gets written to the oldpasswd.txt and all the remaining 9 old passwords are pushed one line down and the 10th line (oldest password in the file) in the oldpasswd.txt is deleted.

So now you still have 10 old passwords in the file including what you entered in the GUI the new Password that got accepted as the first line and the second line is what you entered as the current password in the GUI and the remaining lines pushed down and last line deleted.
The GUI should ask for a password and then verifies that it meets the stated criteria. If it does it should print message "Password Accepted" in the result box. If not it should return a message as to what is wrong with the password and why it is not accepted in the result box. Only one reason needs to be displayed based on the order of errors given above.
So for example if the password being entered is MyNameP!, then in the GUI should display

MyNameP! - Password is not accepted. In the example password is displayed but no where on the GUI the actual password should be displayed.

Password is not 12 characters long.

Attachment:- Programming Assignment.rar

Reference no: EM133577503

Questions Cloud

Specify mandatory minimum sentences for criminal offenses : What is the conclusion of the following argument? Some judges complain about statutes that specify mandatory minimum sentences for criminal offenses.
Identify the guiding framework you will use for your study : Identify the guiding framework you will use for your study. Present the key concepts, briefly explain relation and present propositions relevant to this study.
Research in unethical manner : Discuss how individuals or organizations can or have used research in an unethical manner. What consequences have you seen or could be possible?
Criminal antitrust suit is convicted or pleads guilty : When a defendant in a criminal antitrust suit is convicted or pleads guilty, there is prima facie evidence that an antitrust violation occurred.
Create a GUI for changing a password : Create a GUI for changing a password. There should be an entry box for user id. User Id can be anything like your email. No check or validation required
Violent criminals locked up : About the article named "Violent criminals locked up: Examining the effect of incarceration on behavioral continuity" by Jon Sorensen and Jaya Davis?
Discuss some of the cautions that you may have had : After completing the necessary readings, discuss some of these cautions that you may have had to overcome over the past couple of years.
Risk assessment methodology related to reentry into society : Discuss advantages and disadvantages of the risk assessment methodology related to reentry into society.
Type of fraud be detected and prevented : Provide an overview of the case JM3 Construction LLC . How can this type of fraud be detected and prevented? What role would the expert play in this case?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that asks the user to enter the weight

A small airline company needs a program to compute baggage charges. Write a program that asks the user to enter the weight of a passenger's baggage.

  Design an oracle that runs efficiently but may make mistakes

The clique problem itself is NP-hard. Thus you may not want to have an oracle that runs in exponential time. Think about approach to approximate the solution. In another word, design an oracle that runs efficiently but may make mistakes in some ca..

  Functions of standard and statistical calculators

Write a windows application in Visual Basic to perform functions of standard and statistical calculators.

  Design and implement a class hierarchy for shapes

MITS4002 Object-Oriented Software Development, Victorian Institute of Technology - Demonstrate understanding of classes, constructors, objects, data types

  Write a program called oscar office

Write a program called Oscar Office that instantiates at four different ticket agents. The Oscar Office program should prompt the user for the ticket agent they wish to purchase a ticket.

  Explain secure programming techniques

Explain secure programming techniques. The paper must have: an introduction; use empirical studies regarding insecure programming techniques.

  Create and work with an array of strings

Create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console

  Develop logic to accept number of passengers-zones as input

Develop the logic for a program that accepts the number of passengers and zones crossed as input. the output is the ticket charge.

  Write a program to enter any number of integers in array

Write a program which permits a user to enter any number of integers, which are then stored in the array. After user enters integers, perform the following operations on array.

  Write a program that converts english units to metric

Write a unit conversion program that converts English units to Metric using the conversion table given above. Ask the user from which unit they want to convert ( oz, lb, in, ft, mi) and which unit they want to convert to (g, kg, cm, and km).

  Display the software developers data on the console

Meets specifications by demonstrating file handling, array data structure manipulation, and console output mastery by accomplishing the following.

  Write a class player contain attributes for player

write a class player contain attributes for the player name average and team.write three functions to input change and display these attributes.also write a constructor that asks for input initilize all the attributes?

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