You are on page 1of 3

CET002 Software Development

Assignment 1
This assignment element contributes 40% of the module total

In this assignment, we are assessing the skills you have developed so far in the following areas:

Use of visual form controls, to include at least one of each of - buttons, text boxes, labels
Declaration of variables and input of numeric data via visual controls to the variables
Use of one or more arithmetic calculations
Use of an if .. else if .. else structure to allow conditional flow of control in the program.
Using the radio and/or check box controls to accept input provided by the user.
Text file creation program statements to read/write data from/to a text file
Use of a repetition to process file data items

1. Background

Bob Frampton is the manager of Roker Ravens, an amateur football team who train and play in the
town of Rokerville. The team is currently playing in a minor league, and currently are moving down
the list due to a run of poor performances. Bob knows that part of the problem is down to player
injuries and poor fitness levels among the players.

Bob has decided that he need to improve his players fitness levels so he has secured for his players,
a group membership of a local gym, which offers facilities such as swimming, treadmill, weightlifting,
rowing and step machines. Bob wants to monitor their training programmes more closely, to make
sure that players are making good use of the gym facilities and improving their fitness levels.

Therefore Bob needs a computer program which can record a players daily exercise and fitness
activities over the course of a week; and display this information in a report. The system should
allow a user to input data daily, and to view their exercise and fitness status at the end of each seven
day period.

You have been asked to write a Visual Studio Forms application in C# to solve this problem.

2. Requirements specification

Your program should contain:

1. Instructions - help/guide to advise a user on how to use the system

2. User Input - input from the keyboard the user name, age, gender, height and weight and
store these details on an external text file

3. Record Daily Sporting/Fitness Activities - must as a minimum store the number of minutes
of exercise for the user on a given day. More advanced optional features may ask the user
more questions such as type of exercise (e.g. swimming, cycling, rowing or step machine,
treadmill, weightlifting).
CET002 Software Development

4. End-of-week report - based on the information stored on the users file, display the total
number of minutes of exercise for the user for the week, along with the daily average. Note:
this part of the system should check that the exercise diary is a complete 7 day set of
information before it runs the end-of-week report part.

5. Exit system

3. Program testing

A small number of test cases should be devised in order to test that the program works correctly.
Your test plan and testing results should be recorded on a test table using the format given in the
template overleaf. Where appropriate, you should include screenshots of the program in action and
data files as evidence that the program is working as expected.

4. Marking breakdown

20% Form design, user instructions, error messages and clarity of interaction

40% Program construction (including variables, decisions, loops, file-handling, naming


conventions and use of comments)

20% Sophistication of solution (including overall program functionality and any advanced
optionality)

20% Program testing (including provision of test cases and testing evidence)

5. Submission

The program and accompanying documentation must be must be saved into a single zip file and
submitted electronically via Sunspace by the due date. It should include:

a) A program solution folder containing the Visual Studio solution for each of the programs

b) A single Word document which contains:


Your name, student number, programme, and a short user guide on how to use the
program
The completed test plan for your program including:
o Test data cases - input data used for testing
o Expected and observed results for each test case
o Supporting proof such as screenshots and data files.
CET002 Software Development

Test Table Program: ___________________________________ Tester: ____________________

Test no. Test Date Test Description Test Data Expected Actual Further Action
(where appropriate) results/outcome results/outcome Required

You might also like