|
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\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", |
| 76 | + "Create a program to randomly generate the orders of each customer as a string of numbers\n", |
| 77 | + "(corresponding to the item) and calculate the cost of the order. For example, if the generated\n", |
| 78 | + "string is 5712335, the program should understand that the customer has ordered 1 burger, 1 \n", |
| 79 | + "portion of nuggets, 2 portions of fries, 2 medium drinks and 1 salad. It should then compute the\n", |
| 80 | + "cost ($17.50). The final cost is calculated after considering discounts for combo offers and\n", |
| 81 | + "adding 18% GST.\n", |
81 | 82 | "\n",
|
82 | 83 | "The combo offers are:\n",
|
83 | 84 | "A) 1 Burger + 1 Portion of Fries + 1 Drink -> 20% discount\n",
|
84 | 85 | "B) 1 Burger + 1 Portion of Nuggets + 1 Salad + 1 Drink -> 35% discount\n",
|
85 | 86 | "\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", |
| 87 | + "The final cost of the 5712335 order is $15.69. The profit gained each day has to be recorded for\n", |
| 88 | + "one month (October) and plotted for analysis.\n", |
88 | 89 | "\n",
|
89 | 90 | "Note:\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", |
| 91 | + " - There will be at least 20 customers and not more than 50 customers per day. Each customer\n", |
| 92 | + " orders at least 3 items and not more than 7 items.\n", |
| 93 | + " - If there is a possibility of availing multiple combo offers in an order, the program\n", |
| 94 | + " should select the offer with maximum discount.\n", |
94 | 95 | "\"\"\""
|
95 | 96 | ]
|
96 | 97 | },
|
|
0 commit comments