Question: Need help with creating conversion function checkout (num_hats, num_tels, num_creams): This function starts off knowing how many Headless Hats, Boxing Telescopes, and Canary Creams we
Need help with creating conversion function

checkout (num_hats, num_tels, num_creams): This function starts off knowing how many Headless Hats, Boxing Telescopes, and Canary Creams we would like to purchase at Weasleys' Wizard Wheezes. You can just use those three parameters to calculate. (Assume they're all non-negative numbers). The prices are two galleons per Headless Hat, 12 sickles and 26 knuts per Boxing Telescope, and seven sickles per Canary Cream. Calculate and return the total price in knuts. In the wizarding world, a galleon is worth 17 sickles, and one sickle is worth 29 knuts. o assume all three parameters (num hats, num_tels, num_creams) are non-negative integers. checkout(e, e, 1) checkout(0, 1, e)-* checkout(e, 2, e) checkout(1, 1, 1)> 15 203 374 748 63
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
