Question: Write a program using C++ that will compare two pizzas and determine which is the best deal by the square inch. Remember pizza come in

Write a program using C++ that will compare two pizzas and determine which is the best deal by the square inch. Remember pizza come in two basic shapes round and square.

Basically you have to determine what shape the first pizza is, then calculate the square inch for the first pizza based on the shape. (area/price)

Determine what shape the second pizza is, then calculate the square inch for the second pizza based on the shape. (area/price)

Compare the first Pizza price_per_square inch with the second pizza price per square inch. And tell the user which is the best deal.

Please use good comments. (If possible finish in 2 hours or less)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!