Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bazza's Bungy Jumping uses a different type and length of bungy cord depending on the weight of a customer. Bazza eyes-off a customer as they

Bazza's Bungy Jumping uses a different type and 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 or heavy. 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 or closure unless he uses a more structured approach to determining what type and length of bungy cord is appropriate for a particular customer.

He employs you to develop a computerised solution based on the following specifications:

Bungy cords are colour coded for different uses. The colours Bazza uses are Green, Yellow and Red which are rated for Low, Medium and High loads respectively. For each colour there is a recommended weight range.

The length of the bungy cord used will depend on the customers weight, the thrill factor desired and the distance from the platform to the water below. The platform is 50m above the bottom of the river.

The rating (and colour) of the bungy cord depends on the weight of the customer as shown in the following table. A customers weight is measured in kilograms (kg) and is a whole number. If a potential customer is less than 35kg or over 120kg they may not bungy jump for insurance reasons.

Customer Weight (kg)Cord Rating

35 to 49 Low 50 to 79 Medium 80 to 120 High

The length of the bungy cord selected primarily depends on the customers weight. By default the length of bungy cord required is 60% of the distance from the platform to the water.

If customers weight is 100 kg or more, the length of a bungy cord is reduced by 10%.

Because Bazza likes to give his customers maximum satisfaction, he has an increased excitement factor he calls the "Thrill Option". If the customer selects the thrill option then the bungy cord length is increased by 5%.

The output is to display the bungy cord colour and its length. If appropriate the adjustment to the cord length due to customers weight and thrill option is to be output. Input and output should be formatted as shown in the example runs below.

Assume that any input by the user is valid (no error checking of input is required). Develop a solution using Java which will solve Bazza's problem.

Note: this is a fictional example.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago