Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please write the code in C# thanks! The following table shows the information of five facilities in a community Opening time (hour: minute 07:00 09:00
please write the code in C# thanks!
The following table shows the information of five facilities in a community Opening time (hour: minute 07:00 09:00 01:00 06:00 08:00 Closing time (hour: minute) 22:00 18:00 23:59 21:00 17:30 Identification Type Pool Tennis court Pool Pool Tennis court Design and develop a C# project that satisfies the following requirements: 1. Two classes shall be created for each type of facility: Tennis Court, and Pool 2. Pool has a public statie data member pool count (of type int), which keeps track of the total number of pools 3. Tennis Court has a public static data member tennis court count (of type int), which keeps track of the total number of tennis courts 4. Each pool (and tennis court) has an opening time and a closing time. Opening time and closing time are object of the class Time 6. The driver shall perform the following tasks in the order specified a. Initialize the static members pool_count and tennis_court_count to 0, and display them b. Instantiate the five objects listed in the table c. Display the values of pool count, and tennis_court_count. d. Display each facility's identification, type, opening time and closing time using ToString0 functionsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started