Question: Examine the flowchart image below and then find and correct all the syntax and/or logical errors. Good Times Party Supplies rents tables and chairs for
- Examine the flowchart image below and then find and correct all the syntax and/or logical errors.
Good Times Party Supplies rents tables and chairs for parties. A set of tables and chairs is $16 each if 12 or fewer sets are ordered and $13 each if 13 or more are ordered. Orders delivered more than 4 miles away require an additional $10 delivery charge. This program accepts the quantity of table sets ordered and the distance to the party and then calculates and displays the total price. start Declarations num quantity num miles output "Enter number of table sets needed" input quantity/ output "Enter distance, in miles" input miles calculateRate(quantity, miles) stop calculateRate(num m, num q) Declarations num CUTOFF 12 num LOW PRICE num HIGH PRICE num price No q> CUTOFF? price =q * HIGH_PRICE 13.00 16.00 return output "price", price Yes. price = q * LOW_PRICE
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
Answer ... View full answer
Get step-by-step solutions from verified subject matter experts
