Calculate the number of slices

Assignment Help Basic Computer Science
Reference no: EM131544335

Question 1:

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:

A) Ask the user for the diameter of the pizza in inches.

B) Calculate the number of slices that may be taken from a pizza of that size.

C) 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 = π*r2

Reference no: EM131544335

Questions Cloud

Analyze astrazenecas expatriate management practices : What decisions related to expatriates could organizations take to maximize the benefits to the company despite ongoing economic recessions?
Define the spiritual aspect of life better : The influences that have occured from Taoism and Buddhism are many. Starting with thier attitued toward nature steming from religious philosopy.
Schizophrenia and dissociative identity disorder : Schizophrenia and dissociative identity disorder. Post-traumatic stress disorder and panic disorder. Social anxiety disorder and obsessive-compulsive disorder.
Evaluate the lesson we learn from the three villages : Evaluate the lesson we learn from the three villages. Assess how this lesson could be helpful in implementing strategic pricing strategies into organizations.
Calculate the number of slices : A) Ask the user for the diameter of the pizza in inches. B) Calculate the number of slices that may be taken from a pizza of that size.
Discuss these ideas for the use of color : Determine whether you prefer Debussy or Mahler after listening to works by each at the Websites below or in this week's Music Folder .
How has the status on women changed in the post world : Has globalization been good or bad for the post 1945 (and you may want to begin in the 1980's) world? It would probably be better to discuss only briefly.
Review the companys current offerings and processes : Carefully review the company's current offerings and processes. How would you characterize the usability of Netflix's search functions?
Relational database concepts and applications : Class: Relational Database Concepts and Applications. Assignment: Entities and Attributes Actions for 'Entities and Attributes

Reviews

Write a Review

Basic Computer Science Questions & Answers

  A normal good is being produced in a constant-cost

A normal good is being produced in a constant-cost, perfectly competitive industry. Initially, each firm is in long-run equilibrium. Briefly explain the short-run adjustments for the market and the firm to a decrease in consumer incomes. What happens..

  Report steps necessary evidence and protect company

Jonathan Simpson owns a construction company. Write a one-page report detailing the steps Jonathan and you need to take to obtain the necessary evidence and protect the company.

  Water-jug puzzle

Water-jug puzzle

  Through the layers of the osi model

Explain how information flows through the layers of the OSI model. Use the postal service as the example. Make sure you clearly indicate which layer you are referring to.

  Optimal cash replenishment level

What will be its optimal cash replenishment level? (Enter your answer in dollars not in millions. Round your answer to 2 decimal places.)

  Use huffman coding for compression-decompression.

Use Huffman coding for compression/decompression. When computing the Huffman tree, do not compute the code for any character that does not exist in the input. Do not insert these characters into the min-heap.

  Calculate the minimal sum logic for each output

How would I do this problem? When it says 4-bit two's complement numbers, what does it mean?

  What role does business intelligence play in competitive

What role does Business Intelligence play in competitive advantage and organizational strategy?

  Policies and provisions to unbundled network elements

What are some of the major policies and provisions under the 1996 Act in regards to unbundled network elements (UNEs).

  Program specifications for a simple business problem

Given a set of program specifications for a simple business problem requiring iteration, code and test a program that meets the specifications and employs best programming practices.

  Business proposal to help justify

Include SWOT analysis in your business proposal to help justify why you have selected this option or why you have chosen to take this course of action.

  Create a chat window using html

Individual: jQuery - Assessment Activity - Week4 - PRG/282 - eCampus Create a chat window using HTML, CSS, and jQuery where you and a customer service representative can chat. with a bot response.

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