Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Windows Form-based application IN C# to manipulate the Westeros database

ID: 3717928 • Letter: W

Question

Write a Windows Form-based application IN C# to manipulate the Westeros database (see end-notes). The app’s GUI consists of (a) an OptionGroup container holding radio buttons for each castle (Winterfell, Dragonstone, KingsLanding, all of them), (b) three buttons, (c) a multi-line TextBox.

The functioning of the application is suggested by the images shown below.

First the user selects a “Castle” option (the default is “All castles”)

When the user clicks on the button “Get People from selected castle” you will search the database retrieving all persons from the given castle. The result should be displayed in the textbox (see Figure1).

Clicking the button “Make selected people one year younger” sends to the database an update request targeting the people of the selected castle. Their age values should be reduced by one. Clicking on the “Make selected people one year older” produces analogous results. (see Figure2)

Figure1. Snapshot obtained after listing all possible person entries.

Figure2. Image of ‘Winterfell’ heroes after rejuvating them by one year.

The database will be simulated (as opposed to a real and persistent entity). In this project the database is implemented as a generic list holding Hero objects. Each Hero object includes: id, name, age, and castle. STEPS:
1- Implement the Hero class.
2- Create the List<Hero> container.
3- Load into the list the following entries:

"100", "Arya Stark", "12", "Winterfell"

"200", "Daenerys Targaryen", "20", "Dragonstone"

"300", "Cersei Baratheon", "35", "KingsLanding"

"400", "Tiryon Lannister", "32", "KingsLanding"

"500", "Jon Snow", "21", "Winterfell"

HINT: A good moment for the list to be created is when the app's form is loaded for the first time.

CASTLE O All castles O Winterfell O Dragonstone O Kingslanding Get people from selected castle Make selected people one year YOUNGER Make selected people one year OLDER 14 Winterfell 1ee Arya stark 2e0 Daenerys Targaryen 17 Dragonstone 3ee Cersei Baratheon 36 KingsLanding 4ee Tiryion Lannister 33 ingsLanding 5ee Jon Snow 2e Winterfell

Explanation / Answer

else

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote