|
29 | 29 | "Total gallons of paint requried: 2\n", |
30 | 30 | "```\n", |
31 | 31 | "\n", |
32 | | - "HINT: Use the `math.ceil()` function to round your number of gallons up to the nearest whole number \n", |
| 32 | + "HINT: Use the `math.ceil()` function to round your number of gallons up to the nearest whole number \n" |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + "cell_type": "markdown", |
| 37 | + "metadata": { |
| 38 | + "collapsed": false |
| 39 | + }, |
| 40 | + "source": [ |
| 41 | + "## Step 1: Problem Analysis\n", |
| 42 | + "\n", |
| 43 | + "Inputs:\n", |
33 | 44 | "\n", |
| 45 | + "Outputs:\n", |
34 | 46 | "\n", |
35 | | - "**Start out your program by writing your TODO list of steps you'll need to solve the problems.**\n" |
| 47 | + "Algorithm (Steps in Program):\n", |
| 48 | + "\n", |
| 49 | + "\n" |
36 | 50 | ] |
37 | 51 | }, |
38 | 52 | { |
39 | 53 | "cell_type": "code", |
40 | | - "execution_count": 3, |
| 54 | + "execution_count": 1, |
41 | 55 | "metadata": { |
42 | 56 | "collapsed": false |
43 | 57 | }, |
44 | 58 | "outputs": [], |
45 | 59 | "source": [ |
46 | | - "# To-Do list here\n" |
| 60 | + "import math # you need this to use math.ceil(), so we wrote this part of the code for you!!! LEAVE IT HERE!\n", |
| 61 | + "# Step 2: write code here\n", |
| 62 | + "\n" |
| 63 | + ] |
| 64 | + }, |
| 65 | + { |
| 66 | + "cell_type": "markdown", |
| 67 | + "metadata": {}, |
| 68 | + "source": [ |
| 69 | + "## Step 3: Questions\n", |
| 70 | + "\n", |
| 71 | + "1. Why does the program still run when you enter a negative number for length?\n", |
| 72 | + "2. Does the output make sense when you enter a negative length? Why type of error is this?\n", |
| 73 | + "3. Why do we use `math.ceil()` in this program? In other words are you allowed to buy 3.75 gallons of paint?\n" |
| 74 | + ] |
| 75 | + }, |
| 76 | + { |
| 77 | + "cell_type": "markdown", |
| 78 | + "metadata": {}, |
| 79 | + "source": [ |
| 80 | + "## Reminder of Evaluation Criteria\n", |
| 81 | + "\n", |
| 82 | + "1. What the problem attempted (analysis, code, and answered questions) ?\n", |
| 83 | + "2. What the problem analysis thought out? (does the program match the plan?)\n", |
| 84 | + "3. Does the code execute without syntax error?\n", |
| 85 | + "4. Does the code solve the intended problem?\n", |
| 86 | + "5. Is the code well written? (easy to understand, modular, and self-documenting, handles errors)\n" |
47 | 87 | ] |
48 | 88 | }, |
49 | 89 | { |
50 | 90 | "cell_type": "code", |
51 | | - "execution_count": 8, |
| 91 | + "execution_count": null, |
52 | 92 | "metadata": { |
53 | | - "collapsed": false |
| 93 | + "collapsed": true |
54 | 94 | }, |
55 | 95 | "outputs": [], |
56 | | - "source": [ |
57 | | - "import math # you need this to use math.ceil() \n", |
58 | | - "# Code Here\n" |
59 | | - ] |
| 96 | + "source": [] |
60 | 97 | } |
61 | 98 | ], |
62 | 99 | "metadata": { |
|
0 commit comments