HTML / CSS

Website’s Purpose:

This website was a final project for my freshman year computer science class. The objective that we’re given is to make an example restaurant website that would provide a menu, with descriptions, and information about the restaurant. We could customize our website in any way that we pleased, although there were some requirements, such as the different varieties of food, such as appetizers, main course meals, and desserts. 

Purpose Of Function:

          I learned a lot about various topics in my freshman year, which ranged from HTML / CSS (Web design) to Python. I’m still using HTML / CSS in my senior year. With our assignment being to build a restaurant website, we utilized many of the skills that I’ve learned throughout my freshman year.

 

I wrote a function that would take in the data of an event date and input it into the personal organizer. This function is made to check if the number of days entered by the user is correct and won’t throw an error. In this function, it starts by resetting the maximum number of days to 0, so there is no possibility for error.

 

After this, the if statements will check which month of the year it is and save the number of days depending on the month. The if statements will also add more days to the maxdays if it’s February and a leap year. At the end of the function, it will check if the number of days entered is less than 1 or greater than the maxdays for the month. If so, it will throw an error telling the user the two numbers that the days need to be between.