![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Check out the complexity.ppt notes from a week and a half ago. Lauren Biddle |
| 1.B – is there a problem for which you can't write an algorithm? map takes a function and a list of inputs. Hypotenuse takes a list as input, so it's correct as map(hypotenuse,[[3,4],[4,5]]). That's a list containing two sub-lists, [3,4] and [4,5]. Mark Guzdial |
| (sides) will make slides be the input, like [3,4]. sides[0] would then be 3 and sides[1] would then be 4. (By the way, "you" isn't spelled "u" :-) Mark Guzdial |
| It's in the slides on transforming media – mediashifts.ppt. Mark Guzdial |
| Both. Mark Guzdial |
| No, not really. All you have to do is to define the hypotenuse function. def hypotenuse(sides):. Now fill in the rest. The input will be a list like [3,4]. Make the first number the first side, and the second number the second side. You don't need reduce at all, and you only need map in the command area. Mark Guzdial |
| Right. Mark Guzdial |
| A catalog website is a big site, right? Probably with multiple authors? Maybe like a large news site? Does CNN use databases? Why? Why, then, would a catalog website? Mark Guzdial |
| I think my answer had 5 lines. pow() takes TWO arguments, not just one. Mark Guzdial |
| Chapter 3 of the book. It's in designing-debugging.ppt. Mark Guzdial |
| Exactly. Mark Guzdial |
| complexity.ppt. Mark Guzdial |
| Catalog websites include Amazon.com, ebay.com, sears.com, bestbuy.com, etc. Mark Guzdial |
| If you contact me a priori via email, you can take the other quiz. Mark Guzdial |
| I think you're PRINTing instead of RETURNing. Mark Guzdial |
| Yup! Mark Guzdial |
| Maybe on the page Fall 2003 Homework 6 Questions? Mark Guzdial |
| To answer the Soapbox (because I don't really think it's a good place to have a discussion): The final is worth just as much as either midterm. There's a total of 300 points for grabs on the three exams, and that's 35% of your overall grade. Mark Guzdial |