Suretest employ people
to test computer games. New employees are given a budget to buy a suitable
computer system for testing the games. Each tester plays the games on their own desktop computer
system and logs the faults they encounter while playing each game. To help collat
e the test data
generated by their testers, Suretest wish to create a program to store and process test results.
Part 1
Suretest decide to commission a software development company to develop a program to log faults
found by their testers. The program w
ill be tested on the game,
“Hamster Commanders”.
The software will
•
Input the game levels which crash
ed
during each test session.
•
Count the number of times each level has crashed.
•
Produce a list of the number of crashes in each level.
•
Calculate which leve
l/levels had the greatest number of crashes.
The data below should be entered into the programme.
Test Run
Levels which Crashed
1
e,e,d,b,d,b,a,a,a,e
2
e,f,a,a,a,b,d,a,b,e
3
d
,e,d,c,d,a,f,f,e,a
How the program should work
Entering the log data
Ham
ster Commanders has 6 levels (a to f). The data should be entered as a 10 character string.
For example the data for test run 1 should be entered as “eedbd
b
aaae”.
Scottish Qualifications Authority
8
Coursework Task C206/12
Higher Computing
2011/2012
Displaying the total crashes for each level
The total crashes should be displayed as sho
wn below.
Level
Number of Crashes
a
3
b
2
c
0
d
2
e
3
f
0
Displaying the level/levels which crashed the greatest number of times
The information on the level/levels with the most crashes should be displayed as shown below.
The levels with the mo
st number of crashes were:
Level a
Level e
These levels crashed 3 times





