0% found this document useful (0 votes)
3 views7 pages

Tutorial 4 - 1866027742

Information systems tut

Uploaded by

nardhamunijarryd
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)
3 views7 pages

Tutorial 4 - 1866027742

Information systems tut

Uploaded by

nardhamunijarryd
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/ 7

INFORMATION SYSTEMS IB 2024

TUTORIAL 4 – TAKE HOME TUTORIAL


There are 2 parts to this tutorial:
A. an example where you produce all the written parts of the program based on the brief given below
B. a Start-Stop-Continue

Part A.
The ABC Company requires a program that will process the weekly wages of its employees.

Input: employee number, hours worked

Processing:
validate the input (see Table 1); display error messages for invalid input
calculate the weekly pay where the input is valid (see Table 2); pay rate is R500 per hour

Output: weekly pay

Table 1
input to be valid:
employee number in the range 100 to 400 inclusive
hours worked >0 and <= 70

Table 2
hours worked calculation
normal time (<= 40 hours) hours worked * pay rate
overtime (> 40 hours) hours worked * pay rate for <= 40 hours; hours worked * pay rate * 1.5
for hours worked above 40 hours

REQUIRED: Produce the Test Plan, IPO chart, Method Outline, and the Deskcheck of at least 1 valid example
and 1 invalid example, for this problem. You should pass parameters as appropriate. This solution should be
typed using the templates given on the following pages.
You should submit the completed work (in a Word document) into Tut 4 in Ulwazi, by 23h59 on 9 September.

Part B.
For this submission, you should write 1 thing that you would like Linda to Start doing, 1 thing you would like
Linda to Stop doing, and 1 thing you would like Linda to Continue doing. This should be answered in the survey
called SSC in Ulwazi by 23h59 on 9 September. Note that this is an ad hoc submission.
TEST PLAN
Objective: to test the program as thoroughly as possible
Constraints: time; validation rules
Assumptions: hours worked is numeric
Strategy
Input employee number; hours worked

Possible Input Values anything; any number

Classes valid/invalid; valid/invalid

Representative 1. Employee number= 99; hours worked= 71

Examples 2. Employee number= 100; hours worked= 1


3. Employee number= 101; hours worked= 41

Expected 1. " Employee number is invalid"; " invalid number of hours worked"
Results. 2. 100
3. 30750
IPO CHART

INPUT PROCESSING OUTPUT


Validate input Display weekly pay
Employee number Calculation for normal time= hours
Hours worked worked*payrate
Calculation for overtime= hours
worked*payrate*1.5
METHOD OUTLINE
mainline Validate input (hours worked; employee number) Calculate weekly payrate( hours worked)
If employee number< 100 && employee number> If hours worked<=40
400 Payrate = hours worked* payrate
Display " Employee number is invalid" Else
Payrate = 500 If hours worked> 40
Accept employee number If hours worked<0 && hours worked> 70 Payrate= hours worked*payrate*1.5
Accept hours worked Display " invalid number of hours worked"
blnValidInput= true
Validate input ( hours worked; employee
number)
Calculate weekly pay rate(hours worked)
Display Payrate
DESKCHECK
MODULE STATEMENT T F Employee Hours worked Payrate Weekly pay Message Validate
number
Mainline Assign 500
constant
Accept 99
Accept 71
blnValidInput ✓
Validate input If ✓ ✓
If ✓ ✓

Mainline Accept 100


Accept 1
blnValidInput ✓
Validate input If ✓
If ✓
Calculate Calculate 500
weekly
payrate
Mainline Display ✓

You might also like