Ontario adds 13 % sales tax to every price. The order pages need the total of each order. Put both rules in functions.
- Create
price_with_tax(p numeric). It returnsptimes 1.13, rounded to 2 decimal places. - List every product's
nameand its price with tax, in that order. Use your function. - Create
order_total(o integer). It returns the sum ofquantity * unit_priceof the items of ordero. - List the
idand the total of every order whose total is above 50.00, in that order. Use your function.