subject
Engineering, 13.11.2019 01:31 gimmethemanswers

Trading strategies consider the following generalization of the jukebox problem you solved manually on the previous homework assignment: each month you can buy up to maxbuy jukeboxes at buy (bid) price, sell up to maxsel1 jukeboxes at the selling (ask) price, or do nothing. for each jukebox in inventory at the end of a month, you must pay s100 for maintenance and cleaning. for each jukebox left over at the end of the time horizon, you obtain a "salvage value" of s2000. suppose initially that you have exactly the same situation described in the last homework: your inventory capacity is 2 jukeboxes, maxbuy 1, maxsell-1 and you start with 0 inventory. you are planning for 4 months and the selling and buying prices you expect for the next 4 months are as follows: month1234 sell (ask) price$2500$2800$2000$2700 buy (bid) price$2600$2900$2100$2800 required : create a python program to maximize your profits in the following instance of the problem, identical to the one you solved by hand on the previous homework assignment. print out and hand in both the source code for your program and its output. in addition, upload your source code to blackboard, under "assignments" and "homework assignment 6, q2(a)". you are encouraged to use the python codes and templates distributed in class as a starting point for your code.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:10
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
question
Engineering, 04.07.2019 18:10
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
question
Engineering, 04.07.2019 19:10
Acircular aluminum shaft mounted in a journal is shown. the symmetric clearance gap between the shaft and journal is filled with sae 10w-30 oil at t 30°c. the shaft is caused to turn by the attached mass and cord. develop and solve a differential equation for the angular speed of the shaft as a function of time.
Answers: 2
You know the right answer?
Trading strategies consider the following generalization of the jukebox problem you solved manually...
Questions
question
History, 04.09.2020 17:01
question
Mathematics, 04.09.2020 17:01
Questions on the website: 13722361