Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program to calculate the cost of a pizza order. The user will input the

ID: 3545938 • Letter: W

Question

Write a program to calculate the cost of a pizza order. The user will input the number of pizzas the customer wants to order into the form and the program will determine the total cost of the order and display it in the form. The customer receives a quantity discount; when ordering 3 or more pies the price is $10.50 per pie, otherwise the price is $11.75 per pie. Additionally, there is a 5% discount on orders whose total cost is greater than $40 or a 10% discount for orders greater than $60. The final cost is to be displayed in the form.


This is the code I have inputed but I'm not sure if it's right, if any one could post up a step by step from the beggining to end it would be greatly appreciated.


my code:Public Class frmCSCPizzaParlor

Explanation / Answer

#include using namespace std; int main() { // Title of CMD Window system("title How many Slices are in your Pizza?"); // Declare variables double diameter = 0.0, // Diameter of the pizza slices = 0.0, // No. of slices in the pizza area = 0.0, // Area of the whole pizza // Area of one pizza slice const double PI = 3.14159; // Display prompt cout diameter; // Calculate the area of the pizza area = PI * (diameter / 2.0) * (diameter / 2.0); // Calculate number of slices for the size of pizza given slices = area / oneSlice; // Display results cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote