Question
You are asked to write a C# application to create the WESTEROS database (based on the fictional characters of the Game of Thrones by G.G.
You are asked to write a C# application to create the WESTEROS database (based on the fictional characters of the Game of Thrones by G.G. Martin). The database consists of two classes: Castle, and Person. Classes contain Fields, Properties, and Methods. The database schema is shown below. Implement each of the properties, fields and methods of the classes shown above. You will include at least three castles and no less than three people per castle.
A reference to the Game of Thrones characters follows: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF8#q=characters%20game%20of%20thrones Another useful reference is: http://gameofthrones.wikia.com/wiki/Great_Houses
NOTES: (1) Feel free to add methods and properties to enhance the model.
(2) Find methods must be based on the Dictionary-class.
(3) Add tests to prove the functioning of each method supported by the classes.
(4) Organization, documentation, and niceness is important and will definitely affect your grade The following fragment is an illustration of the work ahead Castle c1 = new Castle("House Stark", "Winterfell"); Person p1 = new Person("Arya", "Stark", 12); p1.HomeCastle = c1; Console.WriteLine("P1 " + p1); Person p2 = new Person("Jon", "Snow", 20, c1); c1.AddPerson(new Person("Sansa", "Stark", 14)); Console.WriteLine("C1 " + c1);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started