Comp PP2
Comp PP2
COMPUTER STUDIES
451/2
PAPER 2
TIME: 2½ HOURS
NAME……………………………………………… SIGN………………………..
(Practical)
INSTRUCTIONS TO CANDIDATES
1. Write your name and index number in the spaces provided above.
2. Write the name and version of the software used for each question attempted in the answer
sheet.
3. Answer all questions.
4. All questions carry equal marks.
5. Hand in all the printouts and the soft copy of your work on CD.
QUESTION ONE
The table below shows data obtained from a hotel room booking database. Use it to answer the
questions that follow:
Cust ID Name Phone number Room Date of Receipt No Amount
No payment Paid
001 Mercy Kirwa 0722345671 126 23/4/2020 12345R1 7800
002 Stephen Rose 0733123456 347 02/04/2020 78653R2 4500
003 Jotham Mune 0791256435 56 05/08/2020 12364R1 5200
004 Kitanui John 0782345678 78 03/05/2020 12465R5 5678
005 Felix Kimon 0712678905 12 01/11/2020 12766R3 6790
006 Victor Orwa 0711347890 234 10/07/2020 12067R4 5489
001 Mercy Kirwa 0722345671 126 23/4/2020 12345R1 7800
005 Felix Kimon 0712678905 12 01/11/2020 12766R3 6790
004 Kitanui John 0782345678 78 03/05/2020 12465R5 5678
006 Victor Orwa 0711347890 234 10/07/2020 12067R4 5489
a) i) Create a database named Hotel Details to store the above data. (4mks)
ii) Split the data into two tables. The tables should be named: “Payment table” and “Personal
details”. (12mks)
iii) For each of the tables, chose the most appropriate key field. (4mks)
iv) Insert input mask for the phone number field such that the numbers are displayed as 0722-
345-671. (2mks)
v) Create one to many relationship. (4mks)
b) i) Create a data input screen for each table for inputting the data in the table above. Ensure
that the name and title of the screen are appropriate. (4mks)
ii) Use the screens created to enter the records in the table above into the appropriate tables.(8mks)
c) Create a query to extract all customers whose names end with letter “a”. Save the query as
“END WITH”. (4mks)
d) Generate a tabular grouped report showing the total and average of the payments in the
payment table. Grouping should be done on the customer’s name (5mks)
e) Print the two tables and the report. (3mks)
QUESTION TWO
Bama School ordered Computer accessories and the following suppliers provided the following as
illustrated below.
(a) Enter the data shown above into a spreadsheet and save it as Bama. (16 marks)
(b) The word commputer system has been entered incorrectly. Update the information in the
spreadsheet. (3 marks)
(c) Format all numeric values to 2 decimal places and use comma separators. (4 marks)
(d) Copy the content of Bama to a new sheet and rename the sheet as BamaSales. Enter a label in
Cell F1 as New Amount. In cell F2 enter a formula to calculate the new amount if the amount
went up by a value in cell B18. Copy the formula to the rest of the sheet.(10 marks)
(e) Using BamaSales find subtotals for each supplier. (6 marks)
(f) Using BamaSales’ subtotals for each supplier create a labeled bar graph on a separate
worksheet. Save the chart as Supplier. (8 marks)
(g) Print Bama, BamaSales, Supplier. (3 marks)