ERICA ANDREWS
ABOUT
Java This website was created in order to display a table of contents for java projects. The following programs are a summary of completed programming exercises that can be tested in Integrated Development Environments such as Eclipse or NetBeans.
Blackjack This program was created to be a card game initially providing the user with two cards and then requesting the user to input for either more cards or to cease the game. The game’s goal is toward achieving the highest value possible without exceeding a limitation. This program was completed with Java.
Number Guessing Game This program was created to guess a number chosen by the player between a given range. The player is asked to guess a number and whether the number guessed by the program is the player’s guess. The player is asked to respond to the programs guess by stating whether the guess is correct, a higher value, or a lower value. This program was completed with Java.
Poker Hand This program was created to allow the user to input five numbers representing “cards” and determine which poker hand they represent. There are seven poker hands categorized by the program. Once the user inputs five values, the program states which hand type the values described. This program was completed with Java.
High Scores This program requests the user to input five names along with a score for each. The program prints the top scorers’ name and score. This program was completed with Java.
Circle Class This program demonstrates, within its own class, a calculation based on user input. The calculation determines the area and whether two circles overlap. This program was completed with Java.
Number Guessing with a Class This program was created to allow the user to guess a number between a given range. This program is created with its own class, asking the user whether the programs guess is correct, a higher value or a lower value. This program was completed with Java.
Improved Circle Class This program was created to include specific techniques within its own class. This program determines, based on user input, a calculation of area, whether a circle equals another or whether a circle overlaps another. This program was completed with Java.
High Scores with OOP This program was created to display a score along with a name based on user input. Within its own class, the program displays the scores entered by the user from highest to lowest along with the name entered for each score. This program was completed with Java.
Celsius Converter This program was created to convert Celsius degrees to Fahrenheit degrees within a GUI application. This program allows the user to input a temperature. Through a selection of a conversion button, the temperature entered by the user is converted from Celsius degrees to Fahrenheit degrees. This program was completed with Java.
String Processor Class Within its own class, this program was created to accept a line of text entered by the user and display several counts and modified versions of the text. After the user has entered a line of text, this program uses a calculation to count several analyses and a calculation to create different versions of the text. This program was completed with Java.
Random Number Guesser This program was created to guess a number from the user until the user inputs whether the programs guess is either correct, a higher value or a lower value. Within its own class, this program generates a random number to guess the user’s guess until the programs guess is indicated by the user to be correct. This program was completed with Java.
Grid Writer This program was created to display several shaped objects on a grid. Within its own class, each subclass displays a different shape on the grid, creating an “art” of shapes on a “Grid Writer”. This program was completed with Java.
Adding Exceptions Two programs were created to perform an analysis of exception handling. Within two programs, exception handling is added to throw exceptions within specific calculations based on user input. These programs were created and completed with Java.
Conway’s Game of Life This program was created as a revision of the “Conway’s Game of Life”. “Conway’s Game of Life” is described as a “simple simulation of life forms in a two dimensional grid”. A class was added to the game to display a new “cell behavior”. This program was completed with Java.
Battleship This program was created as a duplicate version of the game known as “Battleship”. This program is based on a one player game in which the user attempts to “sink” ships. When all of the ships have been sunk, the game ends. This program was completed with Java.
Haiku This program was created to display a Haiku. The haiku is to be a three line poem with five, seven and five syllables with the first line printed on two print statements and the second and third line printed on a single line statement. This program was completed with Java.
Application This program was created to allow the user to input two integers and return a sum, quotient, remainder, difference, and product. This program produces an output from user input and an output from user input that purposefully causes the program to crash. This program was completed with Java.
If This program allows the user to input two integers and outputs a display of whether the integers entered are equal. If the integers entered are not equal, this program will output a display of whether the first integer entered is a multiple of the second integer entered or whether the first integer entered is not a multiple of the second integer entered. This program was completed with Java.
A This program allows the user to input a value for a capacity and a value for attendees. After the user has input these values, this program calculates whether the value of capacity has exceeded the value of attendees. This program also displays the value in excess only if the value of capacity has exceeded the value of attendees. This program also displays a value of the difference between the value of capacity and value of attendees if the value of capacity does not exceed the value of attendees. This program was completed with Java.
Max This program was created to allow the user to input a value or values for the salesperson(s) to determine who has sold the most “units”. After the user has input the value(s) for salesperson's, this program will output a display of the salesperson with the largest sold “units” as well as the value of “units” sold. This program was completed with Java.
Last Record Check This program was created to allow the user to input multiple integers and uses a sentinel to terminate after the scores have been entered. After the user has input integers for score values, this program sorts the values entered from largest to smallest and outputs the number of scores entered, the largest score and smallest score entered. This program was completed with Java.
Using Builtin This program was created to calculate a butterfly population estimate. The calculation is based on the user’s input of an estimated number of male and female butterflies. After the user has entered an estimated number for the male and female butterfly population, this program calculates and displays the total number of butterflies, sex ratio, ratio variance, gender differences, mating pairs, growth factor, ratio factor and potential population. This program was completed with Java.
Methods This program was created to allow the user to input a value for a cost and a value for its markup percentage. This program calculates a retail price after the user inputs the value for the cost and its markup percentage. This program also outputs a display of the total retail price of all items entered. This program was completed with Java.
Eight This program was created to calculate a fee for parking. The user inputs a value for customers and the number of hours parked for each. This program displays an output of a calculation for parking for each customer as well as a total of all parking fees. This program was created with Java.
Strings This program was created to allow the user to input two strings and output two calculations. This program outputs the number of constants for the first string entered and the number of vowels for the second string entered. This program was completed with Java.
Arrays This program was created to create an encryption using integers and letters. The user enters four integers to encrypt a word. After the user has entered the integers for encryption, the program asks the user to test the encryption by entering the same four integers entered previously. If the integers entered match the encryption, the program outputs a display of the word encrypted. This program was completed with Java.
Searching This program was created to allow the user to input five integers between a certain range. The output of the program will display the integers entered but not duplicates. This program was completed with Java.
Five Scores This program was created to allow the user to input five integers between a range. The integers entered represent “test scores” that determine an output of a “letter grade”. This program calculates the letter grades based on the scores entered to output a display of five letter grades. This program also displays an output of an average of the scores entered and letter grades entered. This program was completed with Java.
Credit This program was created to allow the user to input different values in order to calculate a balance. The user inputs a beginning balance, new charges, credits and a credit limit. This program calculates and displays a new balance by adding the beginning balance to the difference between the value entered for new charges and the value entered for credits. This program also displays whether the credit limit has exceeded, is less than, or equal to the current balance and whether there is no payment due. This program was completed with Java.
Integers This program was created to allow the user to input two integers in order to calculate whether they are equal or whether they are multiples of another. After the user has entered two values, this program will display whether they are equal and if the first value entered is or is not a multiple of the second value entered. This program was completed with Java.
Numbers This program was created to allow the user to input three integers to display the largest value to the smallest value entered. This program was completed with Java.
Roman This program was created to allow the user to input numbers in order to display its “Roman Numeral”. The user inputs a number between the range of one through ten and the program displays the “Roman Numeral” version of the number entered. This program was completed with Java.
Triangle This program was created to allow the user to input three integers in order to determine whether they form a triangle. After the user has entered three integers, this program calculates and displays whether the three integers entered form or do not form a triangle. This program also calculates and displays whether the three integers entered form a right triangle. This program was completed with Java.
Fat This program was created to allow the user to input the number of calories and the number of fat grams in a food item in order to calculate the percentage of calories that come from the fat of the food item. After the user has entered the number of calories and the number of fat grams in a food item, the program calculates and displays whether the food item’s fat grams produce calories that are low in fat or not low in fat. If the food item’s fat grams produce calories that are not low in fat, this program will display a message of the calories entered and the percentage of calories that come from fat. This program will also display an error message of whether the calories from fat are greater than the total. This program was completed with Java.
Discount This program was created to allow the user to calculate a discount based on a number entered for package quantity. After the user has input the number of packages, this program calculates a discount percentage and displays a discount amount and a purchase amount after the discount. This program was completed with Java.
Shipping This program was created to allow the user to calculate a shipping charge. The user enters a weight of a package and the distance that the package will travel. Based on the weight and traveling distance entered for a package, this program calculates and displays a shipping charge. This program was completed with Java.
© ERICA ANDREWS 2020