|
4 | 4 | "cell_type": "markdown", |
5 | 5 | "metadata": {}, |
6 | 6 | "source": [ |
7 | | - "# Now You Code 1: Tip Estimator\n" |
| 7 | + "# Now You Code 1: Check Divider\n", |
| 8 | + "\n", |
| 9 | + "This program will help you divide a dinner check evenly among the guests. You enter the number of diners and the amount of the check then the program will output the amount each diner should contribute to the check. \n", |
| 10 | + "\n", |
| 11 | + "Example run:\n", |
| 12 | + "\n", |
| 13 | + "```\n", |
| 14 | + "Python Check Divider\n", |
| 15 | + "How many people are dining? 4\n", |
| 16 | + "What is the total amount of the check? 60\n", |
| 17 | + "Each person should contribute 15.0 dollars.\n", |
| 18 | + "```" |
| 19 | + ] |
| 20 | + }, |
| 21 | + { |
| 22 | + "cell_type": "markdown", |
| 23 | + "metadata": { |
| 24 | + "collapsed": true |
| 25 | + }, |
| 26 | + "source": [ |
| 27 | + "## Problem Analysis\n", |
| 28 | + "\n", |
| 29 | + "Inputs:\n", |
| 30 | + "\n", |
| 31 | + "Outputs:\n", |
| 32 | + "\n", |
| 33 | + "Algorithm (Steps in Program):\n", |
| 34 | + "\n" |
| 35 | + ] |
| 36 | + }, |
| 37 | + { |
| 38 | + "cell_type": "code", |
| 39 | + "execution_count": null, |
| 40 | + "metadata": { |
| 41 | + "collapsed": true |
| 42 | + }, |
| 43 | + "outputs": [], |
| 44 | + "source": [ |
| 45 | + "# write code here\n" |
| 46 | + ] |
| 47 | + }, |
| 48 | + { |
| 49 | + "cell_type": "markdown", |
| 50 | + "metadata": {}, |
| 51 | + "source": [ |
| 52 | + "## Evaluation Criteria\n", |
| 53 | + "\n", |
| 54 | + "1. What the problem attempted?\n", |
| 55 | + "2. What the problem analysis thought out?\n", |
| 56 | + "3. Does the code execute?\n", |
| 57 | + "4. Does the code solve the problem?\n", |
| 58 | + "5. Is the code well written? (easy to understand, modular, and self-documenting)\n" |
8 | 59 | ] |
9 | 60 | }, |
10 | 61 | { |
|
0 commit comments