0% found this document useful (0 votes)
36 views8 pages

Gweru Diocese Computer Science Marking Scheme Paper 3

The document outlines the marking scheme for the Gweru Diocese O' level computer science exam for 2022, including programming tasks in Vb.net. It includes designs and code for a multiplication table, a temperature converter, a BMI calculator, a grading system based on marks, and various database-related tasks. Each section specifies the required interface designs and functionalities for the programs and forms to be created.

Uploaded by

tzvidza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views8 pages

Gweru Diocese Computer Science Marking Scheme Paper 3

The document outlines the marking scheme for the Gweru Diocese O' level computer science exam for 2022, including programming tasks in Vb.net. It includes designs and code for a multiplication table, a temperature converter, a BMI calculator, a grading system based on marks, and various database-related tasks. Each section specifies the required interface designs and functionalities for the programs and forms to be created.

Uploaded by

tzvidza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Gweru Diocese Exams

YEAR: 2022
O’ level computer science
PAPER 3 marking scheme
1. Design and write a Vb.net program to accept a number from a user through Input Box
and display its multiplication table into the List Box.

Design

Code

Public Class Form1

Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles btnCompute.Click
lstOutput.Items.Clear()
Dim n, i As Integer
n = InputBox("Enter Number to create table", "Enter Number")
For i = 1 To 10
lstOutput.Items.Add(i * n)
Next
End Sub
End Class

2. Design an interface below which shows a temperature converter .The program should be
able to convert Celsius to Fahrenheit.

2(a).Design
(b). btnCompute

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles btnCompute.Click
Dim c, f As Decimal
c = txtCelsius.Text
f = (c * 9 / 5) + 32
txtFahreinheit.Text = f
(c). btnClear
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles btnClear.Click
txtCelsius.Text = ""
txtFahreinheit.Text = ""
End Sub

btnExit
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub
3(a) Design the Interface

btnCompute

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim a, b, c As Decimal
a = txtWeight.Text
b = txtHeight.Text
c = a / b ^ 2
txtResult.Text = c
End Sub

btnClear
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
txtWeight.Text = ""
txtHeight.Text = ""
txtResult.Text = ""
End Sub
btnExit

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
4. A computer program is designed to calculate the grade of a student mark entered through a
textbox using the grading scale in the table

(a)Design

(b)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim mark As Integer
mark = txtMark.Text
Select Case mark
Case 70 To 100
txtGrade.Text = "A"
Case 60 To 69
txtGrade.Text = "B"
Case 50 To 59
txtGrade.Text = "C"
Case 45 To 49
txtGrade.Text = "D"
Case 40 To 44
txtGrade.Text = "E"
Case 0 To 39
txtGrade.Text = "U"
Case Else
txtGrade.Text = "Invalid"
End Select
End Sub

5. (a) Create the following database which keeps student details [8]
(b)Create a form with all fields to display all students. The form should be titled
“STUDENTS”. Print the form.
[5]

(c) Create a report showing surname, first name and fees. The report should calculate the total
fees paid by all students. Print the report.
[6]

(d) Create a query for pupils who have paid $500 or more. Print the query.
[4]
(e) Create a query to display students whose names begin with the letter P. Print the query.
[3]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy