I created an algorithm to randomly select 3 candidates from the Goblet of Fire. Each candidate has an name, age, and school. Every candidate must be at at least 17 years of age in order to participate in the Triwizard tournament.
This program is not affiliated with JK Rowling and the Harry Potter series. It is created by a fan.
Hogwarts, Beauxbatons, and Durmstrang compete for the Triwizard Cup. In order to compete for the Triwizard Cup, each school needs an older student to represent their school.
- Control.cc
- Control.h
- Goblet of Fire UML.pdf
- main.cc
- Makefile
- Participant.cc
- Participant.h
- README.md
- View.cc
- View.h
- Students put their names in the Goblet of Fire for the Triwizard Tournament. All students must be 17 years or older. Any underage student will not be allowed to partcipate in the Triwizard Tournament. If a student is underage, the program goes back to the menu. If there is no input, the program goes back to the main menu.
- The Goblet of fire will choose 3 students from different schools to participate in the Triwizard Tournament. I programmed my Goblet of fire to choose 3 random students from diffeerent schools.
- Print out the chosen candidates.
- Download this file and unzip it
- Call make
- Call ./executable and enjoy
Tested on an Ubuntu 18.04 enviroment. The code works with C++98 and C++11 syntax.