0% found this document useful (0 votes)
13 views10 pages

Tawana Mukaro Computer Science Project

The document outlines a project focused on designing a calculator to address the inefficiencies of manual calculations used by vendors in Chiruma. It includes research findings from surveys and interviews indicating a strong interest in digital solutions to reduce errors and improve transaction speed. The project also presents an algorithm for basic arithmetic operations and a design for the calculator interface using Visual Studio programming language.

Uploaded by

tawanamukaro
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)
13 views10 pages

Tawana Mukaro Computer Science Project

The document outlines a project focused on designing a calculator to address the inefficiencies of manual calculations used by vendors in Chiruma. It includes research findings from surveys and interviews indicating a strong interest in digital solutions to reduce errors and improve transaction speed. The project also presents an algorithm for basic arithmetic operations and a design for the calculator interface using Visual Studio programming language.

Uploaded by

tawanamukaro
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/ 10

PROJECT A

NAME :TAWANA MUKARO.T


CANDIDATE NO//:
CENTER NUMBER:
LEARNING AREA: COMPUTERSCIENCE
PROJECT TITLE:DESIGNING A CALCULATOR
TOPIC.:SYSTEM ANALYSIS AND DESIGN
Title: Designing a calculator

Part A: Research on an Area Performing Manual


Calculations
In Chiruma, calculations are still being manually done in local grocery stores and market
vendors. Many vendors use pen and paper or mental calculations to total customer purchases,
determine change, and apply discounts. This method is time-consuming and prone to errors.

Impact of Manual Calculations:

1. Errors in Addition & Subtraction – Vendors may miscalculate totals.


2. Delayed Transactions – Customers wait longer for calculations.
3. Inaccuracy in Profit Tracking – Difficulty in tracking daily sales.
4. No Digital Records – Loss of data over time.

To understand the challenges of manual calculations, we conducted a survey with local shop
owners, market vendors, and customers.

Survey Questions for Vendors:

1. How do you calculate totals for customer purchases?


o ☐ Mental calculation
o ☐ Pen and paper
o ☐ Calculator
o ☐ Mobile app
2. How often do you make mistakes in your calculations?
o ☐ Never
o ☐ Rarely
o ☐ Sometimes
o ☐ Often
3. How much time do you spend on calculations per transaction?
o ☐ Less than 10 seconds
o ☐ 10–30 seconds
o ☐ More than 30 seconds
4. Would you be interested in using a digital tool for calculations?
o ☐ Yes
o ☐ No
o ☐ Maybe

Survey Questions for 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 with Mr Mukava(Market Stall Owner):

 Q: How do you calculate total prices for customers?


o A: I use a small notebook and write down the prices, then add them manually.
 Q: Do you ever make mistakes in your calculations?
o A: Sometimes, especially when it's busy. If I miscalculate, I have to redo
everything.

Interview with Mrs Majonga (Small Grocery Shop Owner):


 Q: Have you considered using a digital calculator or mobile app?
o A: I have a calculator, but I forget to use it sometimes. A mobile app would be
helpful if it’s easy to use.

Interview with Customer:

 Q: Have you received the wrong change before?


o A: Yes, a few times. Most vendors are honest and fix the mistake when I point it
out.

Interview Findings:

 Vendors rely heavily on manual calculations, which slows down transactions.


 Some vendors use calculators but still prefer traditional methods.
 Customers are open to digital solutions to reduce calculation errors.

Part II: Algorithm for Arithmetic Operations


To automate calculations, a simple algorithm can be used for basic arithmetic operations like
addition, subtraction, multiplication, and division.

📌 Algorithm for Arithmetic Operations (Addition, Subtraction, Multiplication,


Division, VAT Calculation)

Algorithm for arithmetic operations

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

Part III: Collection of Test Data


Input (num1, num2, operation, VAT) Expected Output
10, 5, 1 (Addition) 15
20, 8, 2 (Subtraction) 12
6, 7, 3 (Multiplication) 42
50, 2, 4 (Division) 25
100, -, 5 (VAT 15%) `VAT: 15
10, 0, 4 (Division) "Error: Division by zero!"

Part 1V: Findings and Conclusion


Findings:

 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

Private Sub txtNumber1_TextChanged(sender As Object, e As EventArgs) Handles


txtNumber1.TextChanged

End Sub
Dim num1 As Double
Dim num2 As Double
Dim operation As String

Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles


btnAdd.Click

num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "+"
End Sub

Private Sub btnSubstract_Click(sender As Object, e As EventArgs) Handles


btnSubstract.Click

num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "-"
End Sub

Private Sub btnDivision_Click(sender As Object, e As EventArgs) Handles


btnDivision.Click

num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "/"
End Sub

Private Sub btnMultiply_Click(sender As Object, e As EventArgs) Handles


btnMultiply.Click

num1 = Val(txtNumber1.Text)
num2 = Val(txtNumber2.Text)
operation = "*"
End Sub

Private Sub btnEqual_Click(sender As Object, e As EventArgs) Handles


btnEqual.Click
Dim result As Double
Select Case operation
Case "+"
result = num1 + num2
Case "-"
result = num1 - num2
Case "*"
result = num1 * num2
Case "/"
If num2 = 0 Then
txtResult.Text = "Error: Division by zero!"
Exit Sub
Else
result = num1 / num2
End If
End Select
txtResult.Text = result

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


btnVat.Click
Dim amount As Double = Val(txtNumber1.Text)
Dim vatRate As Double = Val(txtVAT.Text) / 100
Dim vatAmount As Double = amount * vatRate
Dim totalWithVAT As Double = amount + vatAmount

txtResult.Text = "VAT: " & vatAmount & " | Total: " & totalWithVAT
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles


btnClear.Click
txtNumber1.Text = ""
txtNumber2.Text = ""
txtVat.Text = ""
txtResult.Text = ""
End Sub
End Class

You might also like