Question: Lab 2-Control and Loop Statements We have a magic map that will tell us where Petey went last. However, it is protected by a 10

Lab 2-Control and Loop Statements We have a magic map that will tell us where Petey went last. However, it is protected by a 10 a 5 number password. Luckily everything Petey does is based on an algorithm. Can you solve these 5 puzzles? - Petey has sailed six of the seven seas. If Petey has sailed more than three, he has collected eight shells, otherwise he only has two. - Petey's goal of stopping Knightro is well known. If it is summer, he tries to stop him 5 times, in the spring and fall he tries 12 times. - If Petey has stolen Knightros planner, he tends to eat three tacos, if he takes his phone, it eats 7 in celebration, and if he gets his tablet he will eat 10 tacos. - When Petey goes fishing, he will keep finishing with his next until his has 40 fish. When he catches more than 40 total, he lets half go (rounded up). For example, if he has 41 fish, he will throw back 21 , so he would have 20 remaining. Each time he casts his net he catches 10 fish. - Petey likes to bowl. He noticed that the pins stack in rows of 1,2,3,4. If there was another row it would be 5 in that row. Sometimes he will add additional rows and will need more pins. How many shells does Petey have? (Just write the number in it's numeric form)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
