|
62 | 62 | "outputs": [],
|
63 | 63 | "source": [
|
64 | 64 | "\"\"\"\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", |
66 | 66 | "\n",
|
67 | 67 | "Your restaurant sells 7 different items:\n",
|
68 | 68 | " 1. Burgers - $4.25\n",
|
|
73 | 73 | " 6. Large Drink - $1.75\n",
|
74 | 74 | " 7. Salad - $3.75\n",
|
75 | 75 | "\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", |
81 | 81 | "\n",
|
82 | 82 | "The combo offers are:\n",
|
83 | 83 | "A) 1 Burger + 1 Portion of Fries + 1 Drink -> 20% discount\n",
|
84 | 84 | "B) 1 Burger + 1 Portion of Nuggets + 1 Salad + 1 Drink -> 35% discount\n",
|
85 | 85 | "\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", |
88 | 88 | "\n",
|
89 | 89 | "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", |
94 | 94 | "\"\"\""
|
95 | 95 | ]
|
96 | 96 | },
|
|
0 commit comments