Calculate the number of slices that may be taken from pizza

Assignment Help Programming Languages
Reference no: EM131880963

Problem

Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps:

• Ask the user for the diameter of the pizza in inches.
• Calculate the number of slices that may be taken from a pizza of that size.
• Display a message telling the number of slices.

To calculate the number of slices that may be taken from the pizza, you must know the following facts:

• Each slice should have an area of 14.125 inches.
• To calculate the number of slices, simply divide the area of the pizza by 14.125.
• The area of the pizza is calculated with this formula: Area = "pi r squared" where pi is approximately 3.14159 and r is the radius (half the the diameter).

Reference no: EM131880963

Questions Cloud

Discuss advantages and disadvantages to grid systems : Discuss advantages and disadvantages to grid systems, such as the center-of-gravity and weighted center-of-gravity approaches.
Aspects to project evaluation is managerial flexibility : “One of the most important aspects to project evaluation is managerial flexibility.”
Importance of collaboration in modern supply chain : What is the importance of collaboration in modern supply chain? What is the potential value to the organization?
What amount can claim for the child credit : Anika and Jespar are married and have two children ages 16 and 14. Their adjusted gross income for the year is $98,000.
Calculate the number of slices that may be taken from pizza : Calculate the number of slices that may be taken from a pizza of that size. Display a message telling the number of slices.
Participate in lean supplier develop projects : How do you intend to handle situations where suppliers do not want to participate in lean supplier develop projects?
Supply chain function improves roa : Why is this and name a few ways the Supply Chain function improves ROA.
What is the cost of new common equity : What is the cost of new common equity considering the estimate made from the three estimation methodologies? Round your answer to 2 decimal places.
Production process layout : When setting up their production process layout, companies like Coke for soft drink products and Boeing in the airline industry have totally

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd