View on GitHub

Programming2Portfolio

Tanker Calculator 2.0

alt text

This is a joke calculator application that uses the current date and an inputted birth date to calculate the tanker trucks of water that a user would drink over the course of their life. This was developed as an exploration into the usage and function of the of dates in Java. The goal was also to become familiarized with rudimentary GUI implementation in Java. The entire program uses Java Swing to display the GUI.

Code

alt text

This calculator application was made using Java. The application calculates the age by comparing the user-inputted birthdate with the current date of the system.d to the same format. Simple division is used to calculate the the amount of tankers from the expected lifespan. You can view the source code on Github here.

BACK