Question: The provided text files have syntax and/or logic errors. In each case, determine the problem and fix the errors. Debug 1-1 origPrice not price discount
The provided text files have syntax and/or logic errors. In each case, determine the problem and fix the errors.
| Debug 1-1 origPrice not price discount misspelled |
| Debug 1-2 / not + upper case P in milesPerGallon stop not start |
| Debug 1-3 30 not 31 output costPerDay not Rent |
// This pseudocode is intended to describe
// computing the price of an item on sale for 10% off
start
input origPrice
discount = price * 0.25
finalPrice = origPrice - discnt
output finalPrice
stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
