Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Create a website logon system. This system is designed to allow a user to cre

ID: 3781701 • Letter: 2

Question

2. Create a website logon system. This system is designed to allow a user to create a logon for the first time and store the information as an object in an array. a. Create a tester class that does the following:

i. Ask the user to enter a User-id.

ii. Ask the user to enter a Password.

iii. Have the user to reenter the password.

iv. If the password reentered does not match the original password entered in ii, have the user reenter the password. (The passwords must match to continue.)

v. Have the user enter an email address, name, street address, city, state, zip, and telephone.

vi. Create an User object of the information entered.

vii. Call a method that adds the object to an array.

viii. Repeat ii to viii 10 times in a loop.

ix. Call a method to print the array.

b. Create a User class:

i. Create a constructor that accepts the information from 2.a.i – 2.a.v.

ii. Create get methods for each of the instance variables from i.

c. Create the Logon class:

i. Create a constructor that has no input. The constructor should create an empty array of 10 users.

ii. Create a method that adds the object to the array.

iii. Create a method that prints the array, object by object.

Explanation / Answer

i shall do this using java. there are other fancier lanuages through which you can do this(php, javascript) , but for starters a basic java version would be a lot more intuitive.

----

solution for a) i , ii, iii, iv

let us first look at the login method.

----------------------

solution for a) v,vi,vii, viii,ix

for this simply open the db.txt file and write to it, 10 times as reqireed .

-----------------

create the log in class:

Public class CreateLogIn {

CreateLogIn {

}

public void run() {

CreateLogIn user = new CreateLogIn() ;   //constructor creating an empty array of users

-------------------

b) can will be done similarly

thank you

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote