Tawana Mukaro Computer Science Project
Tawana Mukaro Computer Science Project
To understand the challenges of manual calculations, we conducted a survey with local shop
owners, market vendors, and customers.
1. Have you ever experienced incorrect change when buying from vendors?
o ☐ Yes
o ☐ No
2. Do you think vendors should use digital calculators or mobile apps for faster
transactions?
o ☐ Yes
o ☐ No
Survey Findings:
80% of vendors use manual calculations (pen & paper or mental math).
60% of vendors admitted making occasional mistakes in transactions.
70% of customers reported experiencing incorrect change at least once.
90% of vendors showed interest in using a digital tool to improve accuracy.
3. Interview Section
We also conducted interviews with three vendors and a local business owner to get deeper
insights.
Interview Findings:
START
PRINT "Enter first number:"
INPUT num1
PRINT "Enter second number:"
INPUT num2
PRINT "Select operation: 1-Add, 2-Subtract, 3-Multiply, 4-Divide, 5-VAT
Calculation"
INPUT choice
IF choice = 1 THEN
result ← num1 + num2
PRINT "Addition Result: ", result
ELSE IF choice = 2 THEN
result ← num1 - num2
PRINT "Subtraction Result: ", result
ELSE IF choice = 3 THEN
result ← num1 * num2
PRINT "Multiplication Result: ", result
ELSE IF choice = 4 THEN
IF num2 = 0 THEN
PRINT "Error: Division by zero!"
ELSE
result ← num1 / num2
PRINT "Division Result: ", result
END IF
ELSE IF choice = 5 THEN
PRINT "Enter VAT Rate (%):"
INPUT vatRate
vatAmount ← (num1 * vatRate) / 100
totalCost ← num1 + vatAmount
PRINT "VAT Amount: ", vatAmount
PRINT "Total Price with VAT: ", totalCost
ELSE
PRINT "Invalid operation selected!"
END IF
Flowchart design
start
stop
Vendors can reduce errors and improve transaction speed by using a digital calculator or
a simple mobile app.
Implementing a mobile-based POS (Point of Sale) system will help track sales and
automate total calculations.
A simple Python or Visual basics studio could be developed to automate calculations.
PART B
DESIGN OF THE CALCULATOR INTERFACE
Screenshots of the running interface
Convertion of the algorithmoperations to visual
studios programming language
Public Class Form1
End Sub
Dim num1 As Double
Dim num2 As Double
Dim operation As String
num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "+"
End Sub
num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "-"
End Sub
num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "/"
End Sub
num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "*"
End Sub
End Sub
txtResult.Text = "VAT: " & vatAmount & " | Total: " & totalWithVAT
End Sub
End Sub