Carnival Project

This the final project from the Davis Technical College Java Programming 1 course. It starts with getting your name, and automatically sets you to having 20 tickets. From there you can choose options that move through a switch statement of whether to play a game, go on a ride, or get something to eat. If you run out of tickets you can select an option to "buy" more tickets. With eating, you have 2 free hands. If you try to select more than two things to eat, you get an error message. If you try to eat from a hand that is empty, you also get an error message. Playing games will give you a prize that is put inside of an array list. When you leave, there is a farewell message that prints out and it lists your prizes.

Program Run

Main Class Code

Ride Class Code

Food Class Code

Game Class Code

Customer Class Code