Question: Assignment No. 2 Create a login system for an application. You may use the Design tab to create the interface, but the coding for reading
Assignment No. 2
Create a login system for an application. You may use the Design tab to create the interface, but the coding for reading from the source files, and writing to the target, will be tied to the functionality of the widgets.
You will need to create two external files as inputs:
UserName.txt
Password.txt
Each of these contains a word that will be matched to the users input. The interface has the user enter a login name and then a password, and click a button. When this is done, the program will compare the two text strings entered into the text fields with the words read in from the two files listed above.
If either of them is a mismatch, the alert string will say, Access Denied. If both match, the alert string will say, Access granted! Enter message below.
The user can then type a message into the string labeled Message, and what is typed will then be written to an external file called OutputMessage.txt.
If the access was denied, the submit button will do nothing, and the message above it will change to, You cannot send a message without logging in. If access was granted, the string is written to the target file, and the alert message will say, File successfully updated.
Assignment No. 2
Create a login system for an application. You may use the Design tab to create the interface, but the coding for reading from the source files, and writing to the target, will be tied to the functionality of the widgets.
You will need to create two external files as inputs:
UserName.txt
Password.txt
Each of these contains a word that will be matched to the users input. The interface has the user enter a login name and then a password, and click a button. When this is done, the program will compare the two text strings entered into the text fields with the words read in from the two files listed above.
If either of them is a mismatch, the alert string will say, Access Denied. If both match, the alert string will say, Access granted! Enter message below.
The user can then type a message into the string labeled Message, and what is typed will then be written to an external file called OutputMessage.txt.
If the access was denied, the submit button will do nothing, and the message above it will change to, You cannot send a message without logging in. If access was granted, the string is written to the target file, and the alert message will say, File successfully updated.
The above is one possible configuration of your elements.
This will be due next Thursday by midnight.
The above is one possible configuration of your elements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
