Question
Write a C++ program to calculate to analyze the data from the number of visitors to the national park. Requirements 1. Read the data from
Write a C++ program to calculate to analyze the data from the number of visitors to the national park. Requirements
1. Read the data from the Months.txt and Visitors.txt files into a 1D array and a 2D array. The text files are provided for you to download. The data was obtained from the National Park Servicewebsite.
2. Design the program so the user enters a menu item and the following isdisplayed a. Display the table b. Total and display all recreational visitors to the park. c. By month show the percentage of visitors who are recreational. To calculate this add the recreational visitors and divide by the total recreational and nonrecreational visitors. Display the number to 2 digits.
3. Place the code for each of the above options in functions. There should be 3 functions. Send the arrays to the function.
4. Design the program so the user can continuously enter a menu item and terminate the program when done.
14504 14220 24121 86639 198549 400675 616297 651823 483717 344490 49002 11711 2700 2310 4000 7560 2400 13518 35925 65526 67869 48726 28089 6020 284 4796 7876 6000 1500 2973 2828 1220313280 36702 39453 6000 1500 934 1289 384 6000 1500 6000 1500 6000 1500 4500 1500 600 600 600 600 600 600 14504 14220 24121 86639 198549 400675 616297 651823 483717 344490 49002 11711 2700 2310 4000 7560 2400 13518 35925 65526 67869 48726 28089 6020 284 4796 7876 6000 1500 2973 2828 1220313280 36702 39453 6000 1500 934 1289 384 6000 1500 6000 1500 6000 1500 4500 1500 600 600 600 600 600 600
Step 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