How much square feet of pizza you will have to buy

Assignment Help Basic Computer Science
Reference no: EM13970259

Your friends can move 20 boxes an hour, but they require one 16 inch (diameter) pizza for this work. Write a function in Python that takes the number of boxes you have and returns how much square feet of pizza you will have to buy. Use the function header:

sqFtPizza(numBoxes)

and have it return the square feet of pizza as a float. Assume that the pizzas are perfectly round and that your friends require a full pizza even if they only work a partial hour. (In case you've forgotten your geometry, the area of a circle is pi*r^2. Use 3.14159 for pi.)

Reference no: EM13970259

Questions Cloud

Write a function called codeit that takes a string txt : It replaces each 'a' with 'z', each 'b' with 'y', each 'c' with 'x', etc. The function must work for uppercase letters the same way, but it must not change any other characters. Note that if you call the function twice like this str = codeit(codei..
Find the players expected winnings : Find the players expected winnings if he makes this additional bet when he has the opportunity.
Describe lifo as an inventory method : Which of the following statements best describes the reason that prepaid expense is listed on the statement of cash flows?
Prepare a dissectio onthe case fcc vs at&t inc : Prepare a Dissectio onthe case FCC vs AT&T INC. Before you attempt to write a case brief, it's helpful first just to identify the parts of a judicial opinion.
How much square feet of pizza you will have to buy : Your friends can move 20 boxes an hour, but they require one 16 inch (diameter) pizza for this work. Write a function in Python that takes the number of boxes you have and returns how much square feet of pizza you will have to buy. Use the funct..
Find the expected number of boys in royal family : Find the expected number of boys in royal family and the expected num- ber of girls - Show that, if X and Y are random variables taking on only two values each.
Are x and y independent : A die is rolled twice. Let X denote the sum of the two numbers that turn up, and Y the difference of the numbers (specifically, the number on the first roll minus the number on the second). Show that E(XY ) = E(X)E(Y ). Are X and Y independent?
Find the expected winnings for this bet : If a player bets a dollar on black, and if the ball stops on a black number, he gets his dollar back and another dollar. If the ball stops on a red number or on 0 or 00 he loses his dollar. Find the expected winnings for this bet.
Write about block elements vs inline elements : In this learning activity, I discussed a tag (inline element) and a tag (block element). Knowing the difference between an inline element and a block element is very important.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Write a java class to find occurence of a digit

Write a java class to Find occurence of a digit.

  Is the internet used for advertising

Is the Internet used for advertising and is the Internet used for internal and external information dissemination?

  Covering segments by points

Given n segments, find the minimal possible number of points such that each segment contains at least one point. The first line contains the number 1≤n≤100 of segments. Each of the following n lines contains two integers 0≤l≤r≤109 defining the endpoi..

  Values referred to by ref-variables

Write expressions to compute the following functions of the values referred to by ref-variables x and y, which we shall assume refer to reals.

  Create a console-based program and a gui application

create a console-based program and a GUI application, which justifies the following conditions: The Main() method prompts the user for an integer value and, in turn, passes the value to a method that squares the number and a method that cubes the ..

  Determine the highest bit rate possible for a circuit

1. Determine the number of conditions possible for a binary code

  Cost of equity capital is closest

Suppose the cost of capital of the Gadget Company is 12 percent. If Gadget has a capital structure that is 60 percent debt and 40 percent equity, its before-tax cost of debt is 5 percent, and its marginal tax rate is 20 percent, then its cost of equi..

  Compute the relative frequencies of each letter in a cipher

The most frequent letter of the English language is "e" (with about 12%) followed by t,i,o,a,n,s,r which is very helpful to break the cipher text.

  Identify the difference between analog and digital signals.

Provide an example of a digital signal and an analog signal

  Find whether bit string contains two consecutive one bits

You wish to find out whether bit string contains two consecutive 1 bits. Obviously, you can do this using n probes. For which values of n in range {3, 4, 5, 6, 7} can this be done using fewer than n probes?

  Main elements addressing risk management framework

The National Institute of Standards and Technology (NIST) replaced the former NIST Special Publication 800-37, Guide for the Security Certification and Accreditation of Federal Information Systems with NIST Special Publication 800-37 Revision 1, G..

  Why visualization technologies are becoming an important

Determine the main reasons why visualization technologies are becoming an important part of organizational success. Select two (2) such technologies related to information systems and analyze the manner in which the utilization of the selected tec..

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