Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

4.3 Add a "Log Out" button to the welcome form that, when clicked, logs the user out by removing the

session variable. The user should be sent to the same page after clicking the button, which now

includes a login form.

4.4 Add an option to the login form that says "Remember me!" Save a cookie that identifies the user to

the server if the box is ticked and the login is successful. Even if the browser is closed, the user

should seem logged in on subsequent visits to the website.

NB: You can set the cookie's expiration time to anything sensible. Also, keep in mind that if the user

logs out manually by clicking the "Log Out" button, the cookie should be erased (set the expiration to a

date in the past). 


QUESTION THREE

25 MARKS

3.1 When a student login successfully, the student's home page appears first. It will display his

username as well as three buttons showing the user's fees, attendance, and results. When he/she

selects the fees, attendance, and result buttons, the fees, attendance, and results will be displayed.

3.2 When the student “prominentm” clicks the fees button, the fees for that student will appear, along

with the deadline for fee submission. The output should match the one below:

3.3 Create another table called student_info in database rgi_student that stores below information:

STD_BALANCE (INTERGER)

DUE_DATE (DATE)

ATTENDANCE (INTERGER)

NB. Use student_reg table to retrieve studentID, firstname and display as in the table above then

also use student_fees table to retrieve balance and its due. Return button takes the student back

to the home page.5




QUESTION TWO

25 MARKS

2.1 In continuation of QUESTION ONE, in this task, you are to create a login form. Forms, submitting

requests, and interacting with a MySQL database will all be covered.

2.2 Use information on MYSQL student_reg table to login making sure you are using proper

credentials.

2.3 Register button should take the user to a new page that allows them to register if they are not

registered in the system.

2.4 If student’s credentials do not match the one in the database when trying to login, the page should

display login error message and only three attempts are permitted before the user is kicked out of the

system for 30 minutes.4



1 In this task, you are to create a simple registration form. Use the sample below:

1.2 Create MYSQL database called rgi_student and a table called student_reg which consist of the

following attributes:

STID INTEGER (4)

USERNAME VARCHAR(30)

PASSWORD HASH CHAR(25)

CONFIRM PASSWORD

FIRSTNAME VARCHAR(30)

SURNAME VARCHAR(30)

EMAIL TEXT

QUALIFICATION VARCHAR(15)

CELL NUMBER INTERGER(10)

GENDER VARCHAR(6)

NATIONALITY VARCHAR(25)

1.3 Once the information has been inputted by the student at the frontend (REGISTRATION FORM),

all the fields need to be validated before being sent to the backend (MYSQL DATABASE). Only 3

one SQL task is performed under registration form that is, INSERT operation where captured

information is sent to the created table called student_reg.


 


Armstrong numbers between two intervals


Write a program to print all the Armstrong numbers in the given range A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digit.


Input

The first line has an integer A.

The second line has an integer B.


Output

Print all Armstrong numbers separated by a space.

If there are no Armstrong numbers in the given range,print -1.


Sample Input 1

1

3

Sample Input 1

1 2 3


Sample Input 2

10

15

Sample Input 2

-1


Write a program to implementation a Queue using stacks.
(You may follow the link for hint: https://www.geeksforgeeks.org/queue-using-stacks/)
Write a program to implement circular queue using Arrays.
Write a program for implementation of priority queue with character data elements. Each
element has an integer priority number between 1-5. Implement Enqueue () and Dequeue ()
functions in each of the following cases.
1. Linked list implementation of priority queue.
2. Array implementation of priority queue.
NOTE: No code is required



Consider a avl which is constructed by the following node values:

12,33,44,43,99,0,88,13,43,2,222

Draw the avl and answer the following questions:

1)Draw avl for above data
2)draw diagram after each step

Draw a flowchart that uses while loops to perform the following steps:

a. input two integers: firstNum and secondNum.

b. all the odd numbers between firstNum and secondNum inclusive.

c. the sum of all the even numbers between firstNum and secondNum inclusive.

d. all the numbers and their squares between 1 and 10.

e. the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.


LATEST TUTORIALS
APPROVED BY CLIENTS