Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an algorithm for studying for RECESS 1) Write an algorithm for RECESS POLI

ID: 3735696 • Letter: W

Question

Write an algorithm for studying for RECESS

1) Write an algorithm for RECESS POLICY/WEATHER. Give as much detail as you can come up with. Write it in a structured way, so it is close to programming language statements. (e.g. user input today's temperature, then program will print out if the kids need to wear gloves, etc.)

*RECESS POLICY/WEATHER Children will be going outside to recess when the temperature/wind chill is 20 degrees or above. Please help your child dress for the cold weather. Warm coats, hats, gloves and scarves will help children stay warm!

2) How to write algorithm, see textbook Page 64, Page 135, Page 143 and other pages. Or google with keywords, e.g.: python algorithm sample

3) No need to run it, since it's not a complete .py file. Attach it as .txt file to dropbox.

Explanation / Answer

Algo for this will be:

temperature = user_input(enter temperature); // take input from user

if ( temperature > 20) //check if temperature > 20

dress = hot weather // temperature is not cold. no need for special clothes

else

dress=cold // give warm coats, hats and scarves to children.

The algorithm is simple for this problem. we need to take user inpur from the user and based on the input value we will need an if condition to decide the type of clothes needed for the child. I have added comments in the algo code for understanding.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote