Section A: Computer Science Paper 2 6023
Section A: Computer Science Paper 2 6023
Section A: Computer Science Paper 2 6023
6023
SECTION A
C
S
Truth Table
Central
Input/output
processing Memory Unit
devices
Unit(CPU)
Control Bus
Adress Bus
Data Bus
System Bus
Computer science Paper 2
6023
SECTION B
OUTPUT
x X A
1 2 1
2 3 4
3 4 9
START
Function factorial (n)
Input n
While n>0 Do
IF n=0 THEN
Output “1”
Else
n= n*Factorial (n-1)
End if
End While
STOP
i. Interface Design
(ii)Program code
Computer science Paper 2
6023
Public Class Form1 ‘By Tinotenda Maisiri
Dim amountinvested As Integer
Dim numberofyears As Integer
Dim interestrate As Percantage
Dim balance As Integer
Dim Interest As Integer
interestrate= 15%
interest= (15/100) * amountinvested
balance = amountinvested -Interest
Else
"amountinvested" >2000 Then
interestrate = 20%
Interest = (20 / 100) * amountinvested
balance = amountinvested - Interest
End If
End If
MsgBox.Show("Interest", Interest,vbTab ,"Interestrate",
interestrate,vbTab,"Balance",balance,vbTab,"investedamount" ,amountinvested
vbTab,"Nember of years",numberof years)
SECTION C
Computer science Paper 2
6023
E.C Number
Registration
Number
Registration Teacher Student
Number
Leave days
Salary
Adress Class
Adress
Registration
Number
Salary
Adress First name
Hours Worked
Click here
Click here