Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: Simulation The factory is considering to buy one of the following three palletizing robots: Bumblebee1, Bumblebee2 and Bumblebee3. These palletizing robots will move

image text in transcribedimage text in transcribed

Problem 3: Simulation The factory is considering to buy one of the following three palletizing robots: Bumblebee1, Bumblebee2 and Bumblebee3. These palletizing robots will move along a lane that consists of 100 tiles in length and 5 tiles in width as shown in Figure 1. The palletizing robots will travel from S to D, load some chocolates from D and then carry these chocolates back to S. This is named as a "round-trip". All three robots start from position Row3 when in S. The robots have some problems with their guiding software and therefore they do not. move in a straight, line. You have analyed these delects and you have lound out that: - Bumblebee1 no matter where it is located it would move straight with an 80% probability, with a 10% probability up and with a 10% probability down. - Bumblebee2 if it is in row3 it moves with a 50% probability straight, 25% probability up and 25% probability down. In any other row than row3, Bumbleboe 2 moves towards row3 with a 50% probability, straight with a 40% probability and 10% probability to the opposite direction with respect to row 3 . - Bumblebee 3 if it is in row3 it moves with a 20% probability straight, 40% probability up and 40% probability down. Bumblebee3 if it is in row 2 or row 4 it moves in any direction with the same probability. Bumblebee3 il it is in row 1 or row 5 moves straight with a 30% probability, with a 60% probability towards row3 (that is to row2 il' in row 1 or to row 4 il' in row5) and with a 10% probability towards the other direction. If the robot moves outside these 5 rows (row0 or row6) then it malfunctions. Write a Python program that simulates these three robots moving in this lane for 1 million times (1 million "round-irips" for each robot) and decide which robot would have the loast, malliunctions. Handing Procedure 1. Save You are required to submit only the Python source code of your program. nothing more. If you prepare a "production.csv" file, please don't send it. Save your solutions as ProjectWonka.txt You can use the project template file provided on the course page. 2. Time and Collaboration Info At leasi 2, up to 4 people can do this assignment together. At the start ol the lile, in a commont, write down the total number of hours (roughly) you spent on the assignment. Do not forget:' For example: \# Willy Wonka Project \# Collaborators Info: \# Names: \#.. \# \#. \# W: \# XXXXXXXX \# XXXXXXXX \# XXXXXXXX \# Time Spent: h:mm \# .. your code goes here... II' you have any questions about the homework you are required to ask them through our Aybuzem forum. Good luck@

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions