Question: in C++ Make a program demonstrating numbers for a business situation. In this case an app to order pizzas and do some calculations that might
Make a program demonstrating numbers for a business situation. In this case an app to order pizzas and do some calculations that might be involved with it. Ask the user how many people will want pizza, estimate the number of slices needed by multiplying the number of people by 2. Then ask the user how big in inches the pizzas are at the place we are ordering from. Find the Area of each pizza by dividing this number by two for the radius, then multiplying the radius by itself and by 3.14 for Pl [Area of a circle is PI* radius * radius or "PIR Squared"). Lets say a slice of pizza is equal to 15 square inches. Find out the number of slices in a pizza by dividing the area of each pizza by 15. Then report this value to the user but format it to two decimal places so it doesn't show too many. [Special Instruction: Don't use round. This assignment is showing formatting, showing a number in a correct format in a language, not changing the number to be in that format Rounding the numbers is in the next assignment and doing it here means you are not formatting and it will be a deduction) Tell how many pizzas will be needed by dividing the number of slices needed by the number of slices in a Pizza and show this value to the user but format it to zero decimal places to show a whole number (don't worry about the remainder, this program is about calculations and formatting. The purpose is to show changing the format, not having partial slices managed.) Multiply the number of pizza's needed by 10.55 and show this amount to the user. Make sure to format this number to 2 decimal places to not show partial cents to the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
