Question: c++ i want in 1 hours . Answer please please i want this question answer. please answer me use datasructure Suppose you are asked to
c++ i want in 1 hours . Answer please please i want this question answer.
please answer me
use datasructure
Suppose you are asked to store university data for Sports Week using appropriate data structures for searching and effective retrieval of the data. Sports Weeks data include
- Departments Department data contain only its name
- There are 12 departments in the university
2. Sports Event Sports Event data contains only its name
-
- There are 30 Sports events like cricket, football, table tennis (singles/doubles) etc.
3. Team members Team members data contains Students name, Reg No, Department and Event in which he/she is participating
-
- For each Sports event, a department must choose a team who can participate in the event. Players count will vary based on the event, for instance, for a Cricket team, 11 players must be nominated whereas for Tennis singles, only 1 player is required.
4. General Audience Contains Students name, Reg No, Department
-
- Around 1000 students can be nominated by each department to view different events
Your task is to design the above scenario by using appropriate data structures. Also, implement the following functions
- InsertEvent () Inserts new sports event in the data structure you have chosen
- InsertTeamMember () Inserts new player in the team
- InsertGenAudience () Inserts new audience in the chosen data structure
- SearchStudent () Contains the data of the student to be searched. It searches students in the Sports Week and returns the message that student is participating in the Sports Week or not.
- DisplayAudience () Contains the department name as an argument and displays all the audience participating in Sports Week from that department.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
