cis122.spr13.wk2d2.post

14159 size 5 2 pi 314159 radius size

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: all that the area of a circle can be determined by using the formula πr2 where r is the radius of the circle (1/2 the diameter) and π = 3.14159. The area of the pizza is the area of the circle: pizza = 3.14159 * (size * .5) ** 2 CIS 122 Introduc1on to Programming Spring 2013 pizza_calc func1on 1)  what is the input (if any) 2)  what is the output (if any) 3)  what does the func1on do? 4)  give examples of how the func1on should work 5)  write the code CIS 122 Introduc1on to Programming Spring 2013 CIS 122 Introduc1on to Programming Spring 2013 pizza = 3.14159 * (size * .5) ** 2 pizza = 3.14159 * (size...
View Full Document

This note was uploaded on 02/12/2014 for the course CIS 122 taught by Professor Staff during the Spring '08 term at University of Oregon.

Ask a homework question - tutors are online