Question: Here is the pseudocode for the previous program written as a set of modules and functions: Hodule output_rees(leal fair_dollars per gallon, Balatoni dollars per gallon,
Here is the pseudocode for the previous program written as a set of modules and functions: Hodule output_rees(leal fair_dollars per gallon, Balatoni dollars per gallon, Real price gouge) Display the fair price for allon of a fair_dollars per gallon Diapiny Tour actual price for a gation of waste actual dollars_pergallon Display "Tao are being overborged by pries_gouge. "per gallon led Module Function Real estate_tie dollars per gallonta della per barcel) Constant del GALLONS OF_AS_PER_BARREL OP_011. - 19.0 Declare al tardollars per allon Sot fair_dollars per gallon-dollars per barrel / GALLONS_OF_GAS PAR BARRET. OF OIL Return air dollars per gallon End Function Tunctional, Real input values Declare Neal dollars per berrel Declare del actual dollars per gallon Display "What is the current cost of a barrel of 0117" Impat dollars per_barrel Display "What is the actual cost of a gallon of gas? Input actual dollars per gallon Return dollars perterrel, setual_dollars per gallon Ind Punction Tunction Real calculate price_yougetReal actual_dollars_per_allon, Real fait dollars pergallon) Declare Real pleegouge Set price_gouge - actual_dollars_per_gallon - fair_dollars per _gallon Return price.gouge End Function Module main) ... your code goes here... End Module You need to fill in the part that says.".. your code goes here. Here are the correct lines to add. Put them in the proper order. call output resulta Bet fait dollars per gallon - calculate tair dollars per gallon (dollars per barcel) Bet dollar per barrel, actual dollars per gallon - Input_value Declare al price que Declare Real dollaro per barrel Delare al actual dollara parallon Dear Real fair dollars pernilon Set price_yogesleulate price_googitair dollars_per_gallon) MacBook Air
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
