Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Find the bugs in this pseudocode and please fix and correctit. start declare var

ID: 3608766 • Letter: F

Question

Find the bugs in this pseudocode and please fix and correctit.                      start                         declare variables                         num gallonsOf GasUsed                         num milesTraveled                         num pricePerGallon                         num milesPerGallon                         num costPerMile                      perform inputData ( )                      perform computeStatistics ( )                      perform displayResults ( )                   inputData ( )                       input gallonsOfGasUsed                       input milesTraveled                       input pricePerGallonOfGas                   return                   computeStatistics ( )                       milesPerGallon = gallonOfGasUsed / milesTraveled                       costPerMile = pricePerGallon - milesPerGallon                   return                   displayResults ( )                       print milesPerGal                       print costPerMile                   return                   stop Find the bugs in this pseudocode and please fix and correctit.                      start                         declare variables                         num gallonsOf GasUsed                         num milesTraveled                         num pricePerGallon                         num milesPerGallon                         num costPerMile                      perform inputData ( )                      perform computeStatistics ( )                      perform displayResults ( )                   inputData ( )                       input gallonsOfGasUsed                       input milesTraveled                       input pricePerGallonOfGas                   return                   computeStatistics ( )                       milesPerGallon = gallonOfGasUsed / milesTraveled                       costPerMile = pricePerGallon - milesPerGallon                   return                   displayResults ( )                       print milesPerGal                       print costPerMile                   return                   stop

Explanation / Answer

please rate - thanks
anything in red was changed

                      start

                        declare variables

                        num gallonsOf GasUsed

                        num milesTraveled

                        num pricePerGallon

                        num milesPerGallon

                        num costPerMile

                     perform inputData ( )

                     perform computeStatistics ( )

                     perform displayResults ( )

                  inputData ( )

                      input gallonsOfGasUsed

                      input milesTraveled

                      input pricePerGallon

                  return

                  computeStatistics ( )

                      milesPerGallon = gallonsOfGasUsed /milesTraveled

                      costPerMile = pricePerGallon - milesPerGallon

                  return

                  displayResults ( )

                      print milesPerGallon

                      print costPerMile

                  return

                  stop

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote