Skip to content

AaronTook/Assorted-Java-Projects

Repository files navigation

Assorted-Java-Projects

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. CreditCardValidation.java - Check whether an entered number could be a credit card number and display the result.

  6. 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.

  7. 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.

  8. 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.

  9. TaxComputation.java - Calculate the federal income tax based off of defined criteria for different tax brackets.

About

A collection of small Java programs created for a computer science class.

Topics

Resources

Stars

Watchers

Forks

Languages