How Many Days...?


How many days are there in a given month? We have created a Scratch script that calculates the number of days in the month corresponding to the number that a user types in. Discuss with a partner how this script works. There are a lot of new things in this program that you may not have seen before, so be sure to explore.

Note: This code is NOT written with the best style or efficiency. We hope your reaction to this is “YUCK!”

We have made this code explicitly complex to challenge your understanding of basic code and blocks and their combinations. Feel free to use pen and paper to take notes or work out the code algorithmically.