Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download

Jupyter notebook Homework 2.1/Homework 2.1.ipynb

Views: 72
Kernel: Anaconda (Python 3)

Homework 2.1

Make a notebook in Sage Math Cloud and explain and perform a simple estimation. Include cells with Markdown for your text and explanation as well as cells with Python showing simple calculations.

Instructions

  • Write your name at the beginning of the document

  • Fill in or replace the cells below

References

If you want to learn more about Markdown and Python, here are some links to get started.

http://commonmark.org/help/

https://docs.python.org/3.4/tutorial/introduction.html

This is a Markdown cell, use it like a word processor

Explain what you are trying to estimate in words.

# This is a code cell, use it like a TI-84 1 + 2
3

How many pizza's will we need?

If we are hungry each person will eat 3/8 of a pizza. X represents our class size.

http://gawker.com/how-many-pizzas-should-you-order-the-pizza-equation-wi-1697815579

x = 19
x * (3/8)
7.125

We need at least 7 pizza's if our assumption that each person will eat 3/8ths of a pizza is true.

But what if people aren't hungry and only eat 2/9 of each pizza? then we would need:

x * (2/9)
4.222222222222222

We would only need 4 to 5 pizzas. From this, I conclude, We need to determine a hunger scale before ordering any pizza.

if we held a worldwide pizza party

y = 7500000000
Y = worldwide_population
worldwide_population * (3/8)
2812500000.0

That's a lot of pizza.'

-Jordan Filak peer review: Great job explaining each step and great application.