Project Description
A collection of small Java programs created for a Computer Science class.
Sorted alphabetically, here is a list of the different Java projects with a brief description of what each one does:
- Account.java - Contains a class to represent a bank account and containing methods to simulate withdrawals, deposits, setting the account balance, getting account information, and calculating monthly interest rate from the given annual interest rate (among other minor methods). Test these methods in the "main" function with predetirmined data.
- BabyNames.java - Load the data file (located at https://liveexample.pearsoncmg.com/data/babynameranking2001.txt ) and list all of the popular baby names that were used for both genders.
- CircleClass.java - Contains a class to represent a circle and containing methods to get the area, find the perimiter, detect if a point is within the circle, and detirmine if another circle overlaps with the first circle. Test these methods in the "main" function with predetirmined data.
- ConsecutiveEqualNumbers.java - Create and populate a two-dimensional array. The program then will search it for four consecutive (horizontal, vertical, or diagonal) equal numbers and display whether or not such a case exists within the two-dimensional array.
- CreditCardValidation.java - Check whether an entered number could be a credit card number and display the result.
- FutureValue.java - Calculate the future value of an investment based off of user input representing the initial investment amount, the annual interest rate, and duration of the investment.
- LoanComparison.java - Based off of original loan amount and duration of the loan, calculate and display the monthly payment and total loan cost for various interest rates.
- PhoneKeypads.java - Converts any alphabet character or numerical character to a number (as is often labeled on landline phones), and display the binary of that number.
- TaxComputation.java - Calculate the federal income tax based off of defined criteria for different tax brackets.
Each of these programs runs independently from the others, and no external code is necessary other than a recent Java installation.
Source Code
Additional Projects
Here are some other programming projects that you might be interested in learning about!
Many of my other programming projects can be found here.
Python PDF Editor
This console-based application allows users to manipulate PDF files, with functionality such as encryption, decryption, file merging, and file compression.
PyStock
This GUI-based application allows users to view and compare data about recent stock prices for any valid ticker over six pre-selected periods.