Question: Your task is to create a C + + program to help organize three critical areas of the kingdom: 1 . Knight Roster: Structania s

Your task is to create a C++ program to help organize three critical areas of the kingdom:
1. Knight Roster:
Structanias knights have grown lazy, and their stats are scattered across the land. You
must organize them into a structured knight roster using structs. Each knight has a name,
armor class, and hit points. Some knights are very experienced and are equipped with
special weapons, which also have their own damage and rarity ratings. Create a struct to
capture each knights details, and display the list for the kingdoms record.
2. Banquet Hall Seating Chart:
The royal banquet hall has grown chaotic, and Queen Syntaxia needs you to organize
seating for the annual Code Feast. Your goal is to create a class that will manage the
seating arrangement for a dynamic number of guests. Each guest has a name, role (e.g.,
knight, wizard, peasant), and dietary preference (e.g., vegan, omnivore, etc.). Youll need
methods to add guests, remove guests, and display the final seating chart in a well-
organized format. The seating chart must also handle last-minute changes (since wizards
tend to summon extra plus-ones out of nowhere).
3. Quest Log Tracker:
The kingdoms quests are in shambles! Your final task is to create a Quest Log class that
keeps track of ongoing quests. The log must be able to:
- Add new quests with a description, difficulty level, and the name of the hero assigned to
it.
- Mark quests as complete or ongoing.
- Display a summary of all quests and their current status.
Bonus Challenge (Optional):
Introduce a "Secret Hero" Mode! Allow a special "hidden" guest (a.k.a. Secret Hero) at the
banquet, who has unique abilities that are only revealed after a secret passcode is entered.
This will require clever use of private member functions or even creating helper methods to
manage the hidden attributes of the Secret Hero.
Technical Requirements:
1. Knight Roster (Using Structs):
- Create a `Knight` struct that contains at least:
-`string name`
-`int armorClass`
-`int hitPoints`
-(Optional) A nested struct for `Weapon` with properties such as `damage` and
`rarity`.
- Write functions that display a list of all knights and their attributes.
2. Banquet Seating Chart (Using Classes):
- Create a `Guest` class that includes:
-`string name`
-`string role`
-`string dietaryPreference`
- Functions to add/remove guests and display the seating chart.
- Implement a dynamic seating system that uses an array or vector to manage guests.
3. Quest Log (Using Classes):
- Create a `Quest` class that tracks:
-`string description`
-`int difficultyLevel`
-`string heroAssigned`
-`bool isComplete`
- Include methods to add quests, mark quests as complete, and display all quests

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!