Answered step by step
Verified Expert Solution
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 daytoday running of the business, there is a fulltime shop manager, Annie Price, the head mechanic, Naresh Patel, and three other mechanics who work parttime. 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 shallmust:
keep a complete list of all bikes and their details including bike number, type, size, make, model, daily charge rate, deposit.
keep a record of all customers and their past hire transactions.
work out automatically how much it will cost to hire a given bike for a given number of days.
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.
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.
cope with a customer who hires more than one bike, each for different amounts of time.
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.
record the total amount due and how much has been paid.
print a receipt for each customer.
keep track of the state of each bike, eg whether it is in stock, hired out or being repaired
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 am one Saturday and chooses a mountain bike.
Annie sees that its number is
Annie enters this number into the system.
The system confirms that this is a womans mountain bike and displays the daily rate $ and the deposit $
Stephanie says she wants to hire the bike for a week.
Annie enters this and the system displays the total cost $ $ $
Stephanie agrees with this.
Annie enters Stephanies name, address and telephone number into the system.
Stephanie pays the $
Annie records this on the system and the system prints out a receipt.
Stephanie agrees to bring the bike back by pm 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started