Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

image text in transcribed

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: Local

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

please try to give correct answer 1 1 3 .

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago