Question: Question 1 Write a C# program for the following scenario: A sports club in your local area decided to have a software application to manage
Question
Write a C# program for the following scenario:
A sports club in your local area decided to have a software application to manage its members.
You are a member of that club. When the club management committee came to know that you are
a very good # developer, they approached you to develop the software. The requirement is kind
of following.
Member class has id name and an address and a public static method called GetAllDetails which
will show all the information for a particular Member PlayerStaff There are types of special
members. i Player and ii Staff. Staff class has an additional field named position which can
hold the position eg coach, manager, physician and a method called PlayerStatus which will
return Players who are eligible to play next match.
Player class has additional salary, playing position eg striker, midfielder currentRank
value will be and boolean type field playingStatus which can be either true or false
based on player performance which is going to select the player eligible to play next match.
When the rank of a player lies between he will be eligible to play in the next match.
Staff need help from your system using PlayerStatus method where staff will give the information
of individual player and from there if system finds that rank of a player is between it will
suggest he will be eligible to play the next match. After that it will show all the information
about the suggested Player and information about Staff at the end.
The Club Committee maintains all types of members. The ClubCommittee class has an array of
Member types. The AddMemberMember mem method of this class adds a member to that
array. Members can be a player or staff. The Main method is given for you. Your job is to
implement theclasses along with the relationships.
class Program
static void Mainstring args
Address housenO roadNo, area, district
Address a new Address "Uttara", "Dhaka";
Address a new Address "Banani", "Dhaka";
Staff new StaffSTe "BRUCE", a "Coach";
Player list new Player;
list new PlayerPL "TONY", a "striker", ;
list new Player PL "CLERK", a "Defender", ;
for int ; list. Length;
if sPlayerStatus listi true
Member.GetAllDetailslisti;
Member.GetAllDetailss;
ClubCommittee new ClubCommittee;
AddMember ;
ccAddMember p;
ccAddMember p;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
