These are several Java programs that I completed for my Problem Solving and Programming Concepts course. Feel free to use them however you like.
The soccer team roster program allows users to add, replace, and modify Player
class objects within the team. Additionally, it also features insertion sort to filter results by rank.
Initial player data is populated from the SoccerPlayers.txt
file once the program starts.
Figure 1: The program uses Java Swing to display menu options as a way to interact with the data.
Figure 2: The roster shows all of the players stored within the program.
This was an assignment that was designed to teach about object oriented programming. There are various different methods to interface with the Employee
class.
This program calculates the total cost of pizzas by prompting the user to input the number of small, medium, and large pizzas.
Example Output
Enter customer name:
Tom
Enter number of small pizza(s) you want:
3
Enter number of medium pizza(s) you want:
5
Enter number of large pizza(s) you want:
3
Customer name: Tom
3 Small Pizzas @ $8.95: $26.85
5 Medium Pizzas @ $12.50: $62.50
3 Large Pizzas @ $15.00: $45.00
Subtotal: $134.35
Tax: $12.09
Total Amount Due: $146.44