subject

You own a food truck that is licensed to operate in six different locations, which for the purposes of this problem are simply identified by the numbers 0 through 5. You are trying to decide which of these locations to operate in over the next 10 days. On day 1, you are already committed to operate in location 0. At the end of each day, you can move to one of the other locations, and after day 10 you must move back to location 0. The file food-truck-preamble. py on Canvas defines two arrays: the array moveCost is set up so that moveCost[i, j] contains the cost of moving from location i to location j. This array contains 0 wherever i is equal to j since there is no moving cost if you remain in the same location on two consecutive days. The array operatingProfit is set up so that operatingProfit[t, i] contains the predicted operating profit from operating in location i on day t (where i runs from 0 to 5 and t runs from 1 to 10). Your program should find the most profitable way to operate over the next 10 days, calculated as total operating profit minus all moving costs. It should print the optimal profit and location in which the truck spends each day.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
You know the right answer?
You own a food truck that is licensed to operate in six different locations, which for the purposes...
Questions
question
Mathematics, 29.05.2020 23:05
question
Mathematics, 29.05.2020 23:05
Questions on the website: 13722361