Computer Science

Course Description

In Computer Science, Mrs. Taricco teaches us about many basic aspects of coding (in java) such as conditional statements, loops, lists, arrays, arraylists, and much more. Here are two assignments that we worked on in class which I thought were pretty cool. We also learned HTML and CSS to make our websites.

Magic Square

After learning about arrays, we were assigned a set of problems, one of which was to create a magic square given a specific size with a pre-defined algorithm. The algorithm only works for odd inputs, but this problem challenged us to learn how to manipulate 2-D static arrays in interesting ways. Below is my code as well as example outputs for an input of 3, 5, and 7.

3 by 3 example
5 by 5 example
7 by 7 example

Line Art

We also learned how to create drawings using the Graphics class in java. For this assignment in particular, we also had to use our knowledge of loops in order to create the desired output (shown below).

3 by 3 example

Apps For Good

Problem Statement

Food waste is a widespread problem for households across the world. The primary causes of consumer food waste are insufficient food planning and shopping habits. Individuals tend to purchase extra food items and face confusion over food expiration dates. To minimize future food waste, our solution allows for users to track their food inventory at all times and also for regular notifications to inform the user about soon-to-expire products.

Target Audience

This app is intended for households and individuals,  though future extensions may be geared towards food banks as well.  The app will primarily be implemented for Android users; however, in future extensions, a version may be made available for iOS users.

Minimum Viable Product

The application performs the following three tasks that are prioritized to allow for an easy and quick user interaction: Users shall be able to manually enter food items into the app. The app shall be able to determine the average expiration date for the user’s food entries. The user should also be able to verify the expiration date and edit it. Note: If the actual date an item is entered is not the purchased date, users must manually enter in the purchase date. The app shall be able to push out notifications at the half-life of the item and a few days before a food item expires.

Algorithm

Algorithm

The user enters in a food name. The food name is compared with the Firebase database and the shelf life of the food is then used to determine when to send out the notification

Presentation