Question: Develop a function trayful - total. The function consumes a trayful and produces the total cost of all the goodies on it ( a number

Develop a function trayful-total. The function consumes a trayful
and produces the total cost of all the goodies on it (a number). When calculating the total
cost, you must take into account the number-ordered of each goodie ordered.
9.(30 Points) Develop a function called goat-cheese-promo. The function
consumes a trayful and a number representing the discount on goat cheese items (in
decimal form). The function produces the total cost of the trayful (as above), with the
discount applied to goat cheese classified goodies (and only goat cheese goodies).
Example: a 15% discount is entered as 0.15, so a serving of "pink peppercorn" goat
cheese that usually sells for $3 but is discounted by 15% gets reduced by $0.45 to $2.55.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!