5(a)Subroutines Scope Modular ProgrammingMedium4 marks
Electric light bulbs are advertised online with the price showing:
$1.75 each or 20 bulbs for $30.00A pseudocode function BulbCost()
- takes the quantity of bulbs purchased as its single parameter
- returns the total cost in dollars.
Pseudocode for the main program:
- inputs the number of bulbs purchased
- returns the total cost from the function BulbCost()
- outputs the total cost.
Write pseudocode for the function BulbCost()
Answer
0 words