Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started