In: Computer Science
Chapter Case: Campus Bikes
Campus Bikes is a popular bicycle shop located near a major
university. The business has grown and the owner, Mark Turner,
wants to install an up-to-date computer system to handle all
business functions.
Background
Campus Bikes sells several brands of new bikes, including
everything from high-end racing models to beach cruisers. In
addition to sales of new bikes and accessories, Mark’s service
department is always busy. The staff includes Mark himself, a
bookkeeper, two part-time sales reps, a full-time mechanic, and
several part-time service helpers who assemble bikes.
Before opening the shop three years ago, Mark worked for many years
in his father’s auto dealership, Turner Motors, and he learned all
about the automobile business. In the bike shop, he runs a similar
operation, but on a much smaller scale. For example, sales orders
are recorded on pre-printed forms, and service requests are written
up just as they would be in an auto service department.
Mark’s customers find him fair and reasonable. He likes to say that
the main difference between his business and a big-box retailer is
that he knows his customers and will do whatever it takes to keep
them happy.
You work at the college as a lab assistant in the computer
information department. You earned a computer science degree at a
two-year school, and you recently decided to work toward your
four-degree. The computer lab manager, Jill, often suggests that
local businesses contact you for help in troubleshooting IT
issues.
This morning, you received a call from Mark, who wants to hire you
as a consultant to help plan a system for Campus Bikes. You learned
that Jill had referred him, and you are excited to have this
opportunity. It probably didn’t hurt that both you and Jill had
bought bikes from Mark, and already knew him. After spending
several weekends talking with Mark and the staff, you are ready to
start. You decide to use an object-oriented approach that will be
easy to understand.
Tasks
1. List possible objects in the new bike shop system, including
their attributes and methods. Do not draw a diagram for this. Just
a three column list will be appropriate.
2. Identify three possible use cases and actors.
3. Create a use case diagram that shows how service requests are
handled. This diagram should be drawn similar to Figure 6-16 on
page 189 of the text. Be sure to use the actors and use cases
appropriate for this case as detailed above.
4. Create a state transition diagram that describes typical
customer states and how they change based on specific actions and
events. You can find an example of a state transition diagram in
Figure 6-21 on page 192 of the text.
Answer)
If mark wants to sell bike as online platform so the diffrent objects we have to take into account.
In object oriented approach basically object represent the physical entity which participate in object oriented sys like in case of object oriented model of bike shop the ojects would customers and many more so below is the list of objects and their atributes and methods which will works over those object's atributes.
1)object:Staff
Atributes: departement,Name,salary,post,working experience,skills,date of joing.
methods:setdepartement,getsalary(),setsalary(),countreleventexperience()
2)customers
Atributes:name,age,occupation,customer_from,mobile_number,address,gender,Previous_sell.
Methods:earn_profit(),given_ranking() //given ranking in method which will calculate the importance of customer high importance means high ranking of basis of previous record and selling
3)product:
atributes: name,product_id,product_model,product_demand,product_price
methods:
calculate_profit(),setprice(),get_price(),countavail_quaintity()
4)inventory:
atributes:type,numberof items,number of type of items,shoratage_limit //shortage limit means below it we got to order item
methods: calcualte_limit(),count_items... etc
5)orders:
atributes:order_id,order_type,order_amount,customer_id,shipping_address
method:order_entry,order_track,order_closed.
answer 2) use cases:
1)creation of order
2) schedule the process
3) create invoice
means first create the order then send the request according to order to process once the process done create the invoice.
Answer 3)
Use case diagram:
means sale rep first create the order then send the request according to order to process once the process done create the invoice.
answer 4) state transition diagram:
state transition diagram in used to show the status of customer that customers is having curently.
********PLEASE DON'T FORGET TO GIVE THUMBS UP. I REALLY NEED IT*****