Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a java program for the following: John Watson, the owner of the Wheels, the bicycle hire shop in downtown Socorro city, asked you to

Create a java program for the following:
John Watson, the owner of the Wheels, the bicycle hire shop in downtown Socorro city, asked you to develop a computer system to manage the transactions of his shop.
Wheels attracts a lot of passing custom because of the position of the shop, and also gets many returning customers who know that they will be given a good quality bike that will suit their needs.
As well as John, who is very much involved in the day-to-day running of the business, there is a full-time shop manager, Annie Price, the head mechanic, Naresh Patel, and three other mechanics who work part-time. There is a computer in the reception area, and all the Wheels bikes are recorded on file, with details such as the bike number, type, size, make, model, daily charge rate and deposit. Unfortunately, however, thats all there is on the computer, and the actual hire and return procedures are carried out in much the same, slightly disorganized way that they always have been.
The new Wheels system shall/must:
1. keep a complete list of all bikes and their details including bike number, type, size, make, model, daily charge rate, deposit.
2. keep a record of all customers and their past hire transactions.
3. work out automatically how much it will cost to hire a given bike for a given number of days.
4. record the details of a hire transaction including the start date, estimated duration, customer, and bike, in such a way that it is easy to find the relevant transaction details when a bike is returned.
5. keep track of how many bikes a customer is hiring so that the customer gets one unified receipt not a separate one for each bike.
6. cope with a customer who hires more than one bike, each for different amounts of time.
7. work out automatically, on the return of a bike, how long it was hired for, how many days were originally paid for, how much extra is due.
8. record the total amount due and how much has been paid.
9. print a receipt for each customer.
10. keep track of the state of each bike, e.g. whether it is in stock, hired out or being repaired
11. provide the means to record extra details about specialist bikes.
Scenario for the return of a bike in the current Wheels system
Stephanie arrives at the shop at 9.00am one Saturday and chooses a mountain bike.
Annie sees that its number is 468.
Annie enters this number into the system.
The system confirms that this is a womans mountain bike and displays the daily rate ($2) and the deposit ($60).
Stephanie says she wants to hire the bike for a week.
Annie enters this and the system displays the total cost $14+ $60= $74.
Stephanie agrees with this.
Annie enters Stephanies name, address and telephone number into the system.
Stephanie pays the $74.
Annie records this on the system and the system prints out a receipt.
Stephanie agrees to bring the bike back by 5.00pm on the following Saturday.
All data is put through user input. Make program like an actual computer program

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 Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions