Computer Science Cala 2021

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

ABSTRACT

nmuhlanga7@gmail.com

NENYASHA NALEDI
MUHLANGA
COMPUTER SCIENCE CALA COMPONENT A 2021
NENYASHA NALEDI MUHLANGA

NAME NENYASHA NALEDI MUHLANGA

LEARNING AREA COMPUTER SCIENCE

CALA TYPE PRACTICAL

SYLLABUS TOPIC SYSTEM ANALYSIS AND DESIGN (Syllabus page19)

SUB-TOPIC

CALA TITLE DESIGNING A CALCULATOR

COMPETENCE/SKILLS

 Research
 Problem solving
 Design
 Develop and testing
BACKGROUND
At St Johns High School there are areas where calculations are still manually done. The
teacher has decided to let learners to identify areas at St Johns where calculations are done
manually and design a calculator to solve the problem using programming language learnt

Objectives
To identify an area where calculations are being done manually
To design an interface that is user friendly to solve the problem
To program a system with the designed interface
To demonstrate how the system works

PART A
CALCULATIONS ARE BEING CARRIED OUT MANUALLY AT:
 The tuck shop
 Library
 Dormitories
 Staff houses allocation
 Check in and check out of staff members
 Class registers
 Fees payment

Research on an area which performs some calculations at St Johns using a questionnaire


The tuck shop
 It is a research instrument consisting of a series of questions for gathering
information from respondents. Often a questionnaire uses both open and closed
questions to collect information.

Advantages of Questionnaires.
1. They are cost-efficient
2. They are practical.
3. They produce speedy results.
NENYASHA NALEDI MUHLANGA

4. They are scalable.


5. You do not need to be a scientist.
6. Allows scientific analysis and predictions.
7. User anonymity.
8. No pressure.
9. Can cover all aspects of a topic.

Disadvantages of Questionnaire.
1. Dishonesty
2. Difference in understanding and interpretation.
3. Hard to convey feeling any emotions.
4. Respondents may have a hidden agenda.

Q-Question
Q1 : Does the system work efficiently? YES NO
Q2 : Is it comfortable to use? YES NO
Q3 : Is the tuckshop providing a good customer service? YES NO
Q4: Describe the problem currently being faced by the tuckshop system
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
Q5: Give possible solutions for the problems stated above
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
Q6: Any comments for the system?
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
THANK YOU
NENYASHA NALEDI MUHLANGA

INTERVIEW WITH THE LIBRARIAN

Advantages of interviews.
 Interviews produce a higher response rate.
 The Interviewer can probe deeper into a response given by an interviewee.
 Are useful for untangling complex topics.
 The respondent may give more honest answers to questions.
 The information collected is more reliable, sustainable and adequate for the
purpose.
 It is a very easy way to get relevant information quickly.
 It is flexible and enables the researcher to get large amount of information
Disadvantages of using an Interview
 The interviewer can affect the data if he/she is not consistent.
 It is very time consuming.
 It is not used for large number of people.
 The interviewer may not be biased and ask closed questions.
 The following was available in the interview with the retailer

Questions to interviewees

Q-Question
Q1 : Please give a summary of the existing manual system and all its related operations?
Q2 : How are your tasks performed?
Q3 : When do pupil use the library more, and what staff are involved?
Q4: Where do you keep the book?
Q5: what do you think are some of the strengths of the current system
Q6: How do you update the current system record book
Q7: What challenges have you ever faced during your work
Q8: How would you solve such challenges

A FLOWCHART FOR THE ARITHMETIC OPERATIONS


NENYASHA NALEDI MUHLANGA

START

ENTER NAME

ENTER CLASS

ENTER NUMBER OF
PRACTICALS

DISPLAY PRACFEE

BOARDER?
TOTAL=PRACFEE+20400

TOTAL=PRACFEE+45000

DISPLAY TOTAL

STOP
NENYASHA NALEDI MUHLANGA

Algorithm for the payment of school fees

Start

Print “enter name”

Input name

Accept name

Print “enter class”

Input class

Accept class

Print”enter number of practicals”

Display totals for practicals

If student=boarder then

Print total = “pracfee+45000”

Else

Print total= “pracfee+20400”

stop

CODES
Public Class Form1
'code for calculating fees
Private Sub btncalc_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btncalc.Click
Dim name, state As String
Dim pracdone As Integer
name = txtname.Text
state = txtbd.Text
pracdone = txtpracdn.Text
txtpract.Text = (450 * pracdone)
If txtbd.Text = "boarder" Then
MessageBox.Show("your total amount to be paid is" & txtpract.Text +
45000)
ElseIf txtbd.Text = "dayscholar" Then
MessageBox.Show("your total amount to be paid is " & txtpract.Text +
20400)
Else
MessageBox.Show("invalid entry")

End If

End Sub
'code for exit
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click

Me.Close()

End Sub
'code for clear
NENYASHA NALEDI MUHLANGA

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


System.EventArgs) Handles Button1.Click
txtname.Clear()
txtbd.Clear()
txtpracdn.Clear()
txtpract.Clear()
ComboBox1.Refresh()

End Sub

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


System.EventArgs) Handles Timer1.Tick
lbltime.Text = Date.Now.ToString("dd-mm-yyyy hh:mm:ss")
End Sub

End Class

WINDOWS FORMS

OUTPUT FORM
NENYASHA NALEDI MUHLANGA

TEST PLAN
White box testing / Open box testing/ Code based.
It is a software testing method in which the internal structure/design implementation of the
item being tested is known to the tester. White box testing is useful for component,
integration and system testing and enables identification of errors in code syntax, logic, data
flow and conditions.

Advantages
 Required knowledge of internals of the software under test is beneficial for
thorough testing.
 Code optimization by revealing hidden errors .
 Transparency of the internal coding structure which is helpful in deriving the type of
input data needed to test an application effectively .
 Covers all possible paths of a code thereby, empowering a software engineering
team to conduct thorough application testing.
 Enables programmer to introspect because developers can carefully describe any
new implementation.
 Test cases can be easily automated.
 Gives engineering-based rules to stop testing an application.
 Another argument given for using white box testing technique is to verify that the
code does what it is intended to do at a very low structural level.
NENYASHA NALEDI MUHLANGA

 Each form was tested individually and passed the requirements. The analyst used
this type of testing because it uses the control structure of the procedural design to
derive test cases.
 Using white-box testing methods, the system analyst can derive test cases that
guarantee that all independent paths within a module have been exercised at least
once.
 White-box enables the analyst to derive test cases that exercise all logical decisions
on their true and false sides.
 The testing method also makes it possible to execute all loops at their boundaries
and within their operational bounds.
Disadvantages
 Updated test script required when the implementation is changing too often.
 Some conditions might be untested as it is not realistic to test every single one

TEST PLAN:CALCULATE TOTALS


Test Scenario Scr.no Action Expected Output Actual output Result
No
1 Login A User forgets to Message window Message window PASS
enter name saying, “PLEASE saying, “PLEASE
/class/state ENTER MISSING ENTER MISSING
DETAILS” DETAILS”
B User enters wrong Message window Message window PASS
details saying, “INVALID saying, “INVALID
DETAILS!!” DETAILS!!”
C User enters correct Calculate total Message window PASS
username, class, “your total is ”
state and practicals
done

You might also like