Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The problem below is a timed quiz during class lecture utilizing C# as a programming language. I am utilizing visual data studio 2015 so keep
The problem below is a timed quiz during class lecture utilizing C# as a programming language. I am utilizing visual data studio 2015 so keep that in mind. I need the code to display comments throughout unless it will interfere with the 1 hour time limit that I have to answer the following question. Make sure that the code runs and that the output resembles the one displayed down below. Thank you for answering this question in advanced and I will leave a rating afterwards!
Problem: There are a number of national and state parks available to tourists. Create a Park class. Include data members such as name of park, location, type of (i.e., national, state, and local) facility, fee, number of employees, number of visitors recorded for the past 12 months, and annual budget. Write separate instance methods that (1) return a string representing name of the park, the location, and type of park; (2) return a string representing the name of the park, the location, and facilities available; (3) compute cost per visitor based on annual budget and the number of visitors during the last 12 months; and (4) compute revenue from fees for the past year based on number of visitors and fee. Also include a ToString() method that returns all data members with appropriate labels. Create a second class (main) to test your Park class. Sample Output: Park: Yulie Park Location: Wyoming Type of Park: National Facilities Available: camping Entrance Fee: $5.00 Number of Employees: 500 Number of Visitors Last Year: 100,000.00 Annual Budget: $750,000.00 Revenue From Fees: $500,000.00 Cost Per Visitor: $7.50 Park: Heugonot Park Location: Kerry GA Facilities Available: Hiking, Biking, Camping Park: Aster Regional Park Park Location: Maine Type of Park: Local Problem: There are a number of national and state parks available to tourists. Create a Park class. Include data members such as name of park, location, type of (i.e., national, state, and local) facility, fee, number of employees, number of visitors recorded for the past 12 months, and annual budget. Write separate instance methods that (1) return a string representing name of the park, the location, and type of park; (2) return a string representing the name of the park, the location, and facilities available; (3) compute cost per visitor based on annual budget and the number of visitors during the last 12 months; and (4) compute revenue from fees for the past year based on number of visitors and fee. Also include a ToString() method that returns all data members with appropriate labels. Create a second class (main) to test your Park class. Sample Output: Park: Yulie Park Location: Wyoming Type of Park: National Facilities Available: camping Entrance Fee: $5.00 Number of Employees: 500 Number of Visitors Last Year: 100,000.00 Annual Budget: $750,000.00 Revenue From Fees: $500,000.00 Cost Per Visitor: $7.50 Park: Heugonot Park Location: Kerry GA Facilities Available: Hiking, Biking, Camping Park: Aster Regional Park Park Location: Maine Type of Park: LocalStep 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