Assignment Regulations & Example Assignment
Bazza's Bungy Jumping uses a different length of bungy cord depending on the weight of a customer. Bazza eyes-off a customer as they climb on to the jumping platform and classifies them as light, medium, heavy or extra-large. A light customer gets the full length bungy cord, medium gets 3m reduced from the length, heavy - 6m and extra-large - 9m. The theory is that a heavier customer will stretch the cord further. All customers should come to a halt just above the river which flows under the jumping platform. Bazza felt his system was sufficient as, if he didn't get it quite right, the customer would only get a bit of a dunking in the river. Bazza has been threatened with a serious insurance premium increase unless he uses a more structured approach to determining what length of bungy cord is appropriate for a particular customer. Bazza cannot afford the insurance premium increase. He employs you to solve the problem. The idea is to have a computer on the bungy jumping platform and a set of weighing scales. Each customer is required to get on the scales, their weight is entered into the computer, which then determines the appropriate length of bungy cord to use. A bungy cord is 30m in length but the length can be reduced mechanically on the jumping platform. The manufacturer of the bungy cord recommends a weight range for particular lengths of cord:
| Bungy Length | Minimum Weight | Maximum Weight |
|---|---|---|
27m |
35kg |
55kg |
24m |
55.1kg |
80kg |
21m |
80.1kg |
100kg |
18m |
100.1kg |
200kg |
The scales measure a customer's weight to the nearest 0.1kg. Any customers under 35kg and over 200kg are dissuaded from jumping.
Because Bazza likes to give his customers maximum satisfaction, he introduces an "Increased Excitement" factor. If a customer chooses to go for "Increased Excitement" then 1m is added to the calculated cord length.
Assume that any input by the user is valid (no error checking of input is required). Develop a product using Visual Basic which will solve Bazza's problem.
Run
Weight (kg) ? 72.1
Increased Excitement (Y=Yes, N=No) ? N
Bungy length = 24m
Run
Weight (kg) ? 108.8
Increased Excitement (Y=Yes, N=No) ? Y
Bungy length = 19m
Run
Weight (kg) ? 200.1
Sorry but Government regulations do not allow us to let you jump
Run
Weight (kg) ? 35.1
Increased Excitement (Y=Yes, N=No) ? Y
Bungy length = 28m
The assignment should be word processed with each page numbered. Suggested left margin 2.5cm, right margin a minimum of 1cm.
The following sections are required, (in this order).
This should contain:
This must contain:
The work will not be marked without a signed statement of authorship.
The code should:
Copy the code from Access and paste it into your word processed document.
The code listing should:
You must include a statement indicating whether the code listed successfully compiled (no syntax errors).
Example statement: "The code listed below compiled successfully." or "The code listed below did NOT compile."
Your runs must be made using the program listed in the previous section. You must include a statement indicating that the program runs are for your program as listed in the previous section.
Example statement: "The program runs below are the output of the program listed in the previous section."
| Test Number | Reasons | Inputs | Expected Results | Actual Results | Correct? |
|---|---|---|---|---|---|
| 1 | Minimum weight in light weight category. Increased excitement. | weight = 35.0 increased excitement = "Y" |
bungy length = | ||
| 2 | Middle of light weight category. | weight = 45.0 increased excitement = "N" |
bungy length = | ||
| 3 | Maximum light in lowest weight category. | weight = 55.0 increased excitement = "N" |
bungy length = | ||
| 4 | Minimum weight in medium weight category. | weight = 55.1 increased excitement = "N" |
bungy length = | ||
| 5 | Middle of medium weight category. Increased excitement. | weight = 62.5 increased excitement = "Y" |
bungy length = | ||
| 6 | Maximum weight in medium weight category. | weight = 80 increased excitement = "N" |
bungy length = | ||
| 7 | Minimum weight in heavy weight category. | weight = 80.1 increased excitement = "N" |
bungy length = | ||
| 8 | Middle of heavy weight category. | weight = 90.0 increased excitement = "N" |
bungy length = | ||
| 9 | Large weight in heavy weight category. Increased excitement. | weight = 100.0 increased excitement = "Y" |
bungy length = | ||
| 10 | Minimum weight in extra-large weight category. | weight = 100.1 increased excitement = "N" |
bungy length = | ||
| 11 | Middle of extra-large weight category. | weight = 150.5 increased excitement = "N" |
bungy length = | ||
| 12 | Large weight in extra-large weight category. | weight = 200.0 increased excitement = "N" |
bungy length = | ||
| 13 | Below minimum weight. | weight = 19 | |||
| 14 | Above minimum weight. | weight = 320 |
The following is a guide to the marks assigned to each section of the assignment.
| Section Name | Percentage of Marks |
|---|---|
| Presentation | 5% |
| Defining Diagram | 10% |
| Pseudo Code | 40% |
| Data Dictionary | 5% |
| Desk Check | 10% |
| Access Basic Code | 20% |
| Test Plan & Runs | 10% |
Written by Chris Cope (and Tim Whitfort).