"In order to run this program, first be sure to modify the entries as desired. Once it is modified, go on the \"Run\" menu at the top of the window and press \"Run all cells\". Scroll down to see the result of the predictions!"

]

},

{

"cell_type": "markdown",

"metadata": {},

"source": [

"## Entries\n",

"\n",

"This is the part where the user inputs the sales predictions. Follow instructions so as to get meaningful profit and commission results: \n",

"\n",

"1. First, enter the needed number (for example 2) of time steps as such: *nb_timesteps = 2*\n",

"2. Second, enter all of the new information that is occurring at each time step. Each variable (nb_new_stores_timestep, total_nb_10_bottles_timestep, ...) is an ordered list of values. Each value refers to (**IN ORDER**) each time step. For example, if in time steps 1, 2 and 3, a variable has values X, Y, and Z, this should be entered as: \n",

" variable = [X, Y, Z]\n",

"\n",

" A) The variable **nb_new_stores_timestep** describes the number of **new** stores that the sales advisor has gained at the time step of interest. For example, if at time step 1, the salesperson gets one new store, but at time step 2 they get 3 new stores (amounting to a total of 4 stores in the portfolio), the variable should be set as: \n",

" \n",

" *nb_new_stores_timestep = [1, 3]*\n",

" \n",

" B) The variable **total_nb_10_bottles_timestep** describes the TOTAL amount of 10% bottles that the portfolio stores have ordered at each time step.\n",

" \n",

" C) The variable **total_nb_20_bottles_timestep** describes the TOTAL amount of 20% bottles that the portfolio stores have ordered at each time step.\n",

" \n",

" D) The variable **total_nb_30_bottles_timestep** describes the TOTAL amount of 40% bottles that the portfolio stores have ordered at each time step.\n",

" "

]

},

{

"cell_type": "code",

"execution_count": 8,

"metadata": {},

"outputs": [],

"source": [

"nb_timesteps = 3\n",

"\n",

"nb_new_stores_timestep = [1, 3, 5]\n",

"total_nb_10_bottles_timestep = [0, 10, 50]\n",

"total_nb_20_bottles_timestep = [0, 7, 30]\n",

"total_nb_40_bottles_timestep = [0, 3, 15]"

]

},

{

"cell_type": "markdown",

"metadata": {},

"source": [

"## Constants and functions\n",

"\n",

"In general, do not touch this part of code unless it is to modify the cost, retail prices or commission on the products. If this part is ever to be modified, be sure to only modify the portion headed with \"CONSTANTS\""