Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.05 KB

recursion.pizza-delivery.md

File metadata and controls

42 lines (26 loc) · 1.05 KB

Pizza delivery

Story

In this exercise you're working at a pizza place that delivers to customers.

You offer three types of pizzas:

  • Margherita: $7
  • Caprese: $9
  • Formaggio: $10

Customers can also choose two additional options for a small additional fee:

  1. Extra sauce: $1
  2. Extra toppings: $2

When customers place and order, an additional fee is added if they only order one or two pizzas:

  • 1 pizza: $3
  • 2 pizzas: $2

Tasks

These are example tasks that fit the pizza delivery exercise:

  • Define the pizza types and options
  • Calculate the prize of pizza
  • Calculate the prize of an order

Implementations

Related