Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 96978ef

Browse files
committed
Formatting changes
1 parent fd23fe7 commit 96978ef

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Module2.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@
236236
"source": [
237237
"\"\"\"\n",
238238
" Generate a text file containing 50 integer elements between 1 and 20 (use `random`). \n",
239-
" Identify the unique numbers and the number of their occurrences, and write this into a new text file.\n",
239+
" Identify the unique numbers and the number of their occurrences, and write this into \n",
240+
" a new text file.\n",
240241
" \n",
241242
" Example\n",
242243
" -------\n",

Module3.ipynb

+12-12
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"outputs": [],
6363
"source": [
6464
"\"\"\"\n",
65-
"Imagine that you are a restaurant's cashier and are trying to keep records for analysing profits. \n",
65+
"Imagine that you are a restaurant's cashier and are trying to keep records for analysing profits.\n",
6666
"\n",
6767
"Your restaurant sells 7 different items:\n",
6868
" 1. Burgers - $4.25\n",
@@ -73,24 +73,24 @@
7373
" 6. Large Drink - $1.75\n",
7474
" 7. Salad - $3.75\n",
7575
"\n",
76-
"Create a program to randomly generate the orders of each customer as a string of numbers (corresponding to the item)\n",
77-
"and calculate the cost of the order. For example, if the generated string is 5712335, the program should understand \n",
78-
"that the customer has ordered 1 burger, 1 portion of nuggets, 2 portions of fries, 2 medium drinks and 1 salad. It \n",
79-
"should then compute the cost ($17.50). The final cost is calculated after considering discounts for combo offers and \n",
80-
"adding 18% GST. \n",
76+
"Create a program to randomly generate the orders of each customer as a string of numbers (corresponding\n",
77+
"to the item) and calculate the cost of the order. For example, if the generated string is 5712335, the\n",
78+
"program should understand that the customer has ordered 1 burger, 1 portion of nuggets, 2 portions of\n",
79+
"fries, 2 medium drinks and 1 salad. It should then compute the cost ($17.50). The final cost is calculated\n",
80+
"after considering discounts for combo offers and adding 18% GST.\n",
8181
"\n",
8282
"The combo offers are:\n",
8383
"A) 1 Burger + 1 Portion of Fries + 1 Drink -> 20% discount\n",
8484
"B) 1 Burger + 1 Portion of Nuggets + 1 Salad + 1 Drink -> 35% discount\n",
8585
"\n",
86-
"The final cost of the 5712335 order is $15.69. The profit gained each day has to be recorded for one month (October)\n",
87-
"and plotted for analysis.\n",
86+
"The final cost of the 5712335 order is $15.69. The profit gained each day has to be recorded for one month\n",
87+
"(October) and plotted for analysis.\n",
8888
"\n",
8989
"Note:\n",
90-
" - There will be at least 20 customers and not more than 50 customers per day. Each customer orders at least 3 \n",
91-
" items and not more than 7 items.\n",
92-
" - If there is a possibility of availing multiple combo offers in an order, the program should select the offer \n",
93-
" with maximum discount.\n",
90+
" - There will be at least 20 customers and not more than 50 customers per day. Each customer orders at\n",
91+
" least 3 items and not more than 7 items.\n",
92+
" - If there is a possibility of availing multiple combo offers in an order, the program should select the\n",
93+
" offer with maximum discount.\n",
9494
"\"\"\""
9595
]
9696
},

0 commit comments

Comments
 (0)