Please enable JavaScript.
Coggle requires JavaScript to display documents.
Bike Industry (classes (Bike shops (name, inventory, margin, profit from…
Bike Industry
classes
Bicycle
model name
weight
produce cost
Bike shops
name
inventory
margin
profit from selling bikes
Customers
name
budget: fund of money to buy a bike
Can buy own an new bike
print 1
name of the Customers
list of the bikes in the budget
make sure you price the bike the customer can afford at least one
instances
Bike shop
Create a bike shop that has 6 different models in stock
charge 20% over the cost of the bike
3 customers
Cust 1:
Budget = $200
Cust 2:
Budget = $500
Cust 3:
Budget = $1000
Refactor
File: bicycle.py: contains classes
File: main.py : imports classes and use them
print 2
initial inventory of the shop
print 3
have each of the customer purchase a bike
print the name of bike, cost, rest of his fund
after each purchase , print out the remaining inventory
profit made