Freshman Year Shop Work

Days Since Calendar

       When this code is run it asks for a date. You can ask the program how far into the year the date is, or it can tell you how many days are in that month. You can give it any whole, positive number for the days, months, and years and it will return an output.

       I learned that being able to work with other people and helping others are valuable skills. It taught me how functions are REALLY useful for organization and keeping code clean. They describe what the code inside them does so that you don’t have a long line of unintelligible code in the main. I calculated the days by checking if it was a leap year, and if it was, I would add one on to February.

Event Calender

     This code allows you to enter an event name and date. For the date you enter numbers for example: Year 2023, Month 7, Day 9. If you enter a month number that is not on the Gregorian Calendar it will prompt you to enter a correct month, the same thing with days. In the instructions it had the order of functions that would be easiest so I used that. The instructions just had the order and I made all the code myself. For the function checking if the year is a leap year I already wrote one for the calendar project so I just copy and pasted that into this.

     What I learned from this is lists are really useful for storing data. I learned you do not need to make a list global to add data to it in a function. I learned how to better help people if they are having trouble but also keep them learning. I learned how to better use lists and functions in my programs. Due to my inexperience at the time, I did not prevent improper inputs. You can enter letters and cause errors.