rachel angelsberg

web developer + code enthusiast

portfolio >> coding examples

personality trait generator

Language: PHP

In line with my previous generators, this is a very simple generator for personality traits. Comes in very handy when trying to develop character for writing or recreation.

elder scrolls character generator

Language: PHP

A very simple generator, this is similar to my pokémon trainer generator. With each refresh, a character's race, gender, battle proficiency, top skills, and place of origin are generated.

pokémon trainer generator

Language: PHP

This simple generator creates a simple background for trainers, including name, hometown, and starter pokémon.

bubble sort

Language: Java

This program will demonstrate the sort method created in the BubbleSort class using both a demo and 'try it yourself' option for the user.

download files

insertion sort

Language: Java

This program will demonstrate the sort method created in the InsertionSort class using both a demo and 'try it yourself' option for the user.

download files

letter count

Language: Java

This program will read in one or more lines of text from the user, calculate how many times each letter of the alphabet is used, and print the results to the user.

download files

diving scores

Language: Java

This program will calculate the final diving score based on the seven scores and dive difficulty a user inputs and then calling the getFinalScore method to determine the final score.

download files

duelist

Language: Java

This program will give the user the option to simulate a duel between three people to determine who's the best using the Duelist class (between 2 strategies) and get win odds for each contestant over the course of 10,000 duels.

download files

pet record

Language: Java

This program will create the records for five pets, tell the user which is the youngest, oldest, heaviest, lightest, and what the average age and weight are from the record data.

download files

grading

Language: Java

This program will test the methods available in the Grading class.

download files

temperature

Language: Java

This program will demonstrate the constructors and methods created in the Temperature class.

download files

odometer

Language: Java

This program will test out the different constructors and methods in the Odometer class.

download files

online sales register

Language: Java

This program will allow the user to keep track of customer purchases, item prices, sales tax amounts, and the accumulated sales totals for an online company based in Southern California.

download file

triangles

Language: Java

Based on a number the user enters (integer from 1 to 50), the program will print a triangle consisting of asterisks in a corresponding size.

download file

payment loop

Language: Java

This program will calculate how long it takes to pay off a loan with a set interest rate and user defined payment rate and starting loan balance. It will then output monthly updates or just the overall totals depending on what the user wants.

download file

height

Language: Java

This program will calculate and output (in feet or inches) the height of a child based on the gender and parents’ heights, which are input by the user. This will continue until the user tells the program to stop.

download file

if statement

Language: Java

This program will read in a statement from the user and, depending on the ending punctuation, will print out a different response.

download file

coin toss

Language: Java

This program will calculate the total sum and percentage of eight coin toss calls depending on what the user inputs.

download file

change

Language: Java

This program will calculate the change needed from a vending machine purchase.

download file

word rearrange

Language: Java

This program will read in a line of text and output the text with the first word moved to the end.

download file

mortgage

Language: Java

This program will read in a monthly mortgage payment and the current outstanding balance. Then it will calculate the interest and principal payment amounts, and display the new balance after the monthly payment.

download file

convert to celsius

Language: Java

The program will convert a user-specified temperature from Fahrenheit to Celsius.

download file

calories burned

Language: Java

The program will calculate and output the total number of calories burned for someone who runs for 30mins at 6mph, plays basketball for 30mins, and then sleeps for 6 hours.

download file

product

Language: Java

The program will ask the user to input three numbers, get and print the product of those numbers, then get and divide the sum of those numbers by the product; it will then print the final results for the user.

download file

average

Language: Java

The program will get the average of three whole numbers and print the results.

download file

back to top
';