Closed nicolemoore92 closed 4 years ago
Update Order to have a method total_cost that calculates the total cost of the order from the product cost and the quantity.
total_cost
This will require using numeric types like int and float instead of strings.
int
float
This total_cost method can be used in the display_order and display_orders functions.
display_order
display_orders
Suggested in https://github.com/nicolemoore92/shop-project/pull/9#discussion_r383880325
Update Order to have a method
total_cost
that calculates the total cost of the order from the product cost and the quantity.This will require using numeric types like
int
andfloat
instead of strings.This
total_cost
method can be used in thedisplay_order
anddisplay_orders
functions.