Lab 3: Challenge 1

  • Due Sep 17, 2023 at 11:59pm
  • Points 7
  • Questions 3
  • Available Sep 10, 2023 at 11:59pm - Sep 24, 2023 at 11:59pm
  • Time Limit None
  • Allowed Attempts Unlimited

Instructions

It looks like Knightro has collected this information about Petey:

  • Petey has sailed six of the seven seas. If Petey has sailed more than three, he hascollected 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 5times, 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.
  • Petey likes to bowl. He noticed that the pins stack in rows of 1, 2, 3, 4. If there wasanother row, it would be 5 in that row. Sometimes, he will add additional rows and willneed more pins.

Format:

Do not include unneeded spaces.  Your if statements should be in the format of:

if(condition):

You may get the answer incorrect due to spacing if you do not follow this. 

Only registered, enrolled users can take graded quizzes