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 haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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