{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab02 - CISC106 Fall 2009 Lab02 • Review the code...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CISC106 Fall 2009 Lab02 Review the code examples from your notes in class. Some programs below are associated with a question. Answer the questions using comments below your code in the m-file. You don’t need to write answers to questions in parentheses - those are questions that you should think about and answer for yourself. You may work with one or two other people on your lab (max size is three!). These people must be in your same lab section. If you do, you must each submit separately to Sakai, but only submit one paper copy in class. All of your names should appear on code that you develop together 1 . All students must be able to use the SunRays. If you can figure out how to work from home, that’s fine, but your code must run on Strauss when you make your diary files. The office hours of the TAs and the instructor are on the class website. Visit us! Problems 1. The function sphereVolume() takes a radius as a parameter and returns the volume of a sphere ( volume = 4 / 3 πr 3 ). Write a test function named sphereVolumeTest() that takes no parameters
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

{[ snackBarMessage ]}