nicolemoore92 / shop-project

0 stars 0 forks source link

Introduce total_cost method to Order #10

Closed nicolemoore92 closed 4 years ago

nicolemoore92 commented 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.

This will require using numeric types like int and float instead of strings.

This total_cost method can be used in the display_order and display_orders functions.

LilyFoote commented 4 years ago

Suggested in https://github.com/nicolemoore92/shop-project/pull/9#discussion_r383880325