Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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 times will Petey try to stop Knightro

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago