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

Choose your desired operation

[CIRCUMFERANCE OF A CIRCLE]

[PERIMITER OF A TRIANGLE]


1.Write a program that accepts a positive integer from the user and displays the factorial of the given number. You should use a recursive function called factorial() to calculate the factorial of the number.



1.Write a float function rectangle() that computes and returns the area of a rectangle using its two float formal parameters h and w, where h is the height and w is the width of the rectangle.



Hello,

In datagridview, how do I create rows and columns programmatically? I'm trying to create a Spreadsheet.

column a - z

row 1 - 50

Thank you.


Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.
Write a Java program to display the three top sales made by employees of an organization. The
rows and columns represent the sales made by each employee identified by their employee
number.
SALES 1 SALES 2 SALES 3
101111 R 3 000 R 2 000 R 3 500
101122 R 2 500 R 5 500 R 3 500
101133 R 1 100 R 2 000 R 4 500
101144 R 1 700 R 2 700 R 2 500
101155 R 5 000 R 2 900 R 5 900
Using a Two Dimensional array produce the employee sales report, and the total sales made by
each employee.

1. Consider the loop from Section 8.3 of your textbook.


prefixes = 'JKLMNOPQ'

suffix = 'ack'

for letter in prefixes:

   print(letter + suffix)

Put this code into a Python script and run it. Notice that it prints the names "Oack" and "Qack".

Modify the program so that it prints "Ouack" and "Quack" but leaves the other names the same.

Include the modified Python code and the output in your submission.

2. Give at least three examples that show different features of string slices. Describe the feature illustrated by each example. Invent your own examples. Do not copy them for the textbook or any other source.



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



LATEST TUTORIALS
APPROVED BY CLIENTS