This is a program that I wrote in my object oriented programming class in my sophomore year of college. It simulates an interactive coffee shop menu that a customer can use to add items to their cart, display the calorie count in their customized beverages, and calculate the sum of their cart with tax included. Each item is its own Java class, with its own methods, and runs through a driver class, following object oriented design.
Another project for my object oriented programming class, this is a Java class that can create rollable die objects with any number of sides. I used a driver Java class to simulate rolling two six-sided die objects and output the results to the console.
The movie Speed, starring Keanu Reeves, involves a bus strapped with a bomb that will blow up if it reaches below 50 miles per hour. That concept inspired this problem in my algorithms class. The goal was to write a program that, given a graph of nodes and minimum edge weight (speed in this case), finds an indefinite path of nodes that stays on edges above that minimum value. This picture shows the code that I wrote and the output of my function with a sample graph.