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 1
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 C# 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 (Player/Staff). There are 2 types of special
members. i) Player and ii) Staff. Staff class has an additional field named position which can
hold the position (e.g., 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 (e.g., striker, mid-fielder) currentRank
(value will be 0-100%) 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 (75-100) 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 (75-100), 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 AddMember(Member 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 Main(string[] args)
{
//Address (housenO, roadNo, area, district)
Address a1= new Address(2,5, "Uttara", "Dhaka");
Address a2= new Address (3,15, "Banani", "Dhaka");
Staff s= new Staff("ST-0e", "BRUCE", a1, "Coach");
Player[] list = new Player[2];
list [0]= new Player("PL-000", "TONY", a2,10000, "striker", 87);
list[1]= new Player ("PL-000, "CLERK", a1,14000, "Defender", 71);
for (int i=0; i list. Length; i++)
{
if (s.PlayerStatus (list[i])== true))
Member.GetAllDetails(list[i]);
}
Member.GetAllDetails(s);
ClubCommittee cc= new ClubCommittee();
cc.AddMember (s);
cc.AddMember (p1);
cc.AddMember (p2); }}
 Question 1 Write a C# program for the following scenario: A

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 Databases Questions!