f4 Paper 3
f4 Paper 3
FORM 4
COMPUTER SCIENCE 4021/3
Paper Practical 2 hours 30 minutes
Term 1 Paper
TIME 2 hours 30 minutes
Additional materials:
CD
©Engineer Nyamz
[Turn over
Engineer Nyamz
1. Design an interface and write a code that prompts a user to enter his/her name then, the
2. Given that the retail Selling Price is 115% of the wholesale cost of a product, design an
interface and write a program that accepts, any cost of a product and calculates the selling
giving output.
3. Design a Visual Basic Program which will accept the Principal, Interest Rate and Time using
textboxes. The program is supposed to compute the Interest and present the Future Value
based on simple Interest on a text box. Names and captions are required for controls.
100 [20]
Engineer Nyamz
Agent Table
Agent ID First Name Surname
PS1 John Muriti
PS2 Engineer Nyamz
Ps3 Peter Jones
Print the tables and Establish the relationship among the tables in (a). Print the
screenshot of the result. [15]
Engineer Nyamz
(b) Create a form using Property table and name it Property form. [4]
(c) Using Property table in (a), create a query of the Property type House that have more
than 2 bedrooms and more than 1 bathroom
Name it “Property selected.” [4]
(d) Produce a report from Property table in (a) sorted in ascending order of the price and
the total of all the property should be displayed. Name it “Property report.” [3]
(e) Using tables in (a), create a query that returns the First Name and Surname of all
Agents who have rented a property.
Name it “Rented property.” [4]
5. Design a webpage for Engineer Nyamz Supermarket with the following details.
[20]