Question
IN C++ PLEASE THANK YOU Make sure your data set meets the following requirements: You must have at least one column of strings (like movie
IN C++ PLEASE
THANK YOU
Make sure your data set meets the following requirements:
You must have at least one column of strings (like movie names, item names etc) like my sample items.txt, and 2 columns of numbers. The numbers can be doubles or ints.
Keep your dataset simple - otherwise you will end up with too many parallel arrays that will make it very complicated to write code for.
You must use char arrays to store the strings and depending on the datatypes of the numbers, you can create single or 2-dimensional arrays.
Your data must be separated by semicolons or some delimiters other than space.
Write a function to open the text file created from your dataset and check to make sure it opens. If it does not open, the program exits.
Write a function to read from the text and do some data analysis. This could be comparing data such as finding the highest value or lowest value for a column.
Write a function to read from the text file and do some summation analysis. Find the sum or average of a column of data, or rows of data as shown below in the second example.
Then close the file and end the program.
You must use function prototypes and write your main() function at the top of your program, followed by the other function definitions.
The below sample run is an example - your output will depend on your data set. You may not use this example!
Occupation Name Employed Automation Percent % _______________ ________ __________ _________ Administrative 23081 13849 60.0017% Agriculture 1060 594 56.0377% Arts Entertainment 2773 555 20.0144% Business 8067 1129 13.9953% Computer 4419 1635 36.9993% Construction 6813 3407 50.0073% Education 9427 1697 18.0015% Engineering 2601 494 18.9927% Facilities Care 5905 2893 48.9924% Food Service 13206 10697 81.0011% Health Practitioner 8752 2888 32.9982% Health Support 4316 1726 39.9907% Legal 1283 488 38.0359% Maintenance 5654 1187 20.994% Management 9533 2193 23.0043% Personal Care 6420 2183 34.0031% Production 9357 7592 81.1371% Protective 3506 1262 35.9954% Sales 15748 6772 43.0023% Science 1300 416 32 % Social Service 2571 566 22.0148% Transportation 10274 5651 55.0029% Highest/Lowest Occupations Susceptible to Automation: Production has the highest share (81%) Business has the lowest share (14%) |
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