Question: What is the output based on the flowchart above? 1. Input Pizza 1 Pizza 2 Shape1 = Square Shape2 = Circle Price1 = 10 Price2

What is the output based on the flowchart above? 1. Input Pizza 1 Pizza 2 Shape1 = Square Shape2 = Circle Price1 = 10 Price2 = 10 Size1 = 10 Size2 = 10
start Input shapel, price, size 1 No Yes Is shape 1 square? Squarelnches1 = 3.142*(size 1/2)^2 Squarelnches1= Size1 * Size1 Input shape2, price2 size2 Squarelnch Price1 = Price1 / Squarelnches1 No Yes Is Shape2 square? Squarelnch Price2 = Price2 / Squarelnches2 Squarelnches2 = 3.142*(size 2/2)^2 Squarelnches 2 Size2 * Size2 Yes No Is Squarelnch Pricel Squarelnch Price2? No Is Squarelnch Price1 Yes SquareinchPrice2? Output "Both pizza are the same deal." Output "Pizza 2 is the best deal." Output Pizza 1 is the best deal." end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
