DEBUG01-01
//This pseudocode is intended to describe
//computing the price of an item on sale for 10% off
START
input origPrice
discount = origPrice * 0.10
finalPrice = origPrice - discount
output finalPrice
STOP
DEBUG01-02
//This pseudocode is intended to compute the number
//of miles per gallon you get with your automobile.
START
input milesTraveled
input gallonsOfGasUsed
milesPerGallon = milesTraveled / gallonsOfGasUsed
//milesPerGallon is computed using division
output milesPerGallon
//miles is misspelled, and the P in milesPerGallon should be uppercase
STOP
//Program should end with stop
DEBUG01-03
//This pseudocode is intended to describe
//computing the per day cost of your rent
//in a 30-day month
START
input rent
costPerDay = rent / 30
// Comment indicates 30-day month
output costPerDay
// output should be costPerDay
STOP
<h3>What is an algorithm?</h3>
An algorithm can be defined as a standard formula which comprises a set of finite steps and instructions that must be executed by a software program, in order to proffer solutions to a problem on a computer, under appropriate conditions.
<h3>What is a pseudocode?</h3>
A pseudocode can be defined as a description of the steps that are contained in an algorithm, especially through the use of a plain (natural) language.
<u>Note:</u> The indentation may change due to Brainly's text editor.
Read more on pseudocode here: brainly.com/question/13208346
#SPJ1
<u>Complete Question:</u>
Your downloadable files for Chapter 1 include DEBUG01-01.txt, DEBUG01-02.txt, and DEBUG01-03.txt. Each file starts with some comments (lines that begin with two slashes) that describe the program. Examine the pseudocode that follows the introductory comments, then find and correct all the bugs.