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
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