You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/modules/lesson08/assignment.rst
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,19 @@
2
2
Assignment
3
3
##########
4
4
5
-
Norton Furniture has been using comma-separated files (.CSV extension) to keep track of which furniture they have rented out to which
6
-
customer. This currently requires them to use a spreadsheet program. Your Project Manager wants you to get the spreadsheet program out
5
+
HP Norton has been using comma-separated files (.CSV extension) to keep track of which furniture they have rented out to which
6
+
customer. This is currently generated from a spreadsheet.
7
+
8
+
Your Project Manager wants you to get the spreadsheet program out
7
9
of the equation by creating a Python function that will create and update an inventory CSV file with all the information that is currently
8
-
entered through the spreadsheet program. Additionally, you will need to, using closures and currying, add the necessary functionality
9
-
to bulk-process a list of items, coming from another CSV file, that have been rented out to a single customer.
10
+
entered through the spreadsheet program. You have decided to use closures and currying to develop the necessary functionality.
11
+
12
+
You will also develop functionality to
13
+
to bulk-process a list of items, coming from a separate CSV file, that have been rented out to a single customer. This functionality will thus update the inventory list by adding that customer's rentals.
14
+
15
+
To summarize:
16
+
1. You will create a program to initially create, and subsequently update, a CSV file that lists which furniture is rented to which customer (to replace use of the spreadsheet mentioned above).
17
+
2. You will create additionally functionality that will load individual customers rentals.
10
18
11
19
12
20
Here is what you need to do:
@@ -21,7 +29,7 @@ Here is what you need to do:
21
29
- *item_monthly_price*
22
30
23
31
This function will create *invoice_file* if it doesn't exist or append a new line to it if it does. After adding a few items to the
24
-
same file, the file created by *add_furniture* should look like this:
32
+
same file, the file created by *add_furniture* should look something like this:
25
33
26
34
::
27
35
@@ -30,6 +38,8 @@ Here is what you need to do:
30
38
Alex Gonzales,BR02,Queen Mattress,17.00
31
39
32
40
41
+
You can create a starter file in this format for testing, or you can have your add function do it.
0 commit comments