For this assignment, we had to create a program that would accept dates and event names and return them at the end. I really like programming so this was a good challenge.
The main thing was seeing if the date existed, so I had to tell the program how many days are in each month, but February has a problem. Not only does it have only twenty eight days, but every four years it has twenty nine because a day isn’t actually exactly twenty four hours so we have to make it up somehow, this is called a “leap year”. So, you just make sure it’s divisible by four, right? Nope, for some reason, if it’s divisible by one hundred, it also needs to be divisible by four hundred to be a leap year.
This is all very similar to a calendar project we did before, the main difference being the introduction of lists to hold certain information, which lets us use multiple dates. Lists are different from variables, as they can hold more than one variable, but they take a while to get used to using. You can also use a technique known as parallel lists that make sure information that goes together are put in different lists but at the same index, so you can group them together.
We were tasked with creating a website featuring five recipes from AllRecipes, complete with the video, nutrition facts, ingredients, and instructions. If you think about it, it’s completely useless except to share my opinion of what I think is tasty because you could just use AllRecipies yourself and find even more, but it was really just to practice using tables and videos.
It wasn’t the most fun, just copying down information from AllRecipes, but the worst part was actually choosing recipes, because I wanted to choose something I would willingly eat, but it also needed a video. I also had issues with there being unwanted spaces between sections of my site that I couldn’t control, which was eventually fixed. At least the end result was alright.
