Professional Documents
Culture Documents
INSTRUCTIONS: Answer ALL Questions Question One
INSTRUCTIONS: Answer ALL Questions Question One
QUESTION ONE
a) Create a database named KCA in Mysql, create a table called students, fields in the table
should include, Reg_no, surname, Middle name and first name, course , age ,guardian, Telno etc.
10 Marks
b) Connect the database to your website using php 5 Marks
c) Create an array containing 10 students then use the java script for each statement to display
the names on the screen
10
Marks
QUESTION TWO
(a) Write a html Code to produce the following table 10 Marks
MON JOHN
TUE TOM PETER
WED SIMON
b) KCA University lecturer requires a program to help her enter marks at the end the trimester.
The exam comprises of course work and end of trimester exam. Course work is made up of two
Assignments and a continuous assessment test (CAT). Each assignment is marked out of 5marks,
the CAT is marked out of 20 marks and the end of trimester exam is marked out of 70 marks.
The program should allow the lecturer to enter the two assignments, CAT and end of trimester
exam. The program should display the name of student, total course work, the end of term exam
score and the total score out of 100. The class has 40 students.
Required
Write a program using java script to process the logic above. 15 Marks