Skip to content

Commit 652dead

Browse files
committed
none
1 parent 7c965d1 commit 652dead

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

content/lessons/01/Now-You-Code/NYC1-walkthrough.ipynb

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,58 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"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"
859
]
960
},
1061
{

0 commit comments

Comments
 (0)