Question: im C + + You, as the most junior Oopma - Loompa in the Wonka Chocolate Factory's IT department have been given a data analysis
im C
You, as the most junior OopmaLoompa in the Wonka Chocolate Factory's IT department have been given a data analysis task. You are given a data file containing the worldwide sales figures for factory's most popular candies.
The data is a text file where each line is the sales for one month of one time of candy. The data is organized into columns separated by commas: month, candy, North America sales, South America sales, Asia sales, Europe, and AustraliaNew Zealand.
Write a program that reads this data and does two things: shows the total sales for the year in each region by type of candy, and provides a menu that allows the use select one of the candy types and displays a table showing the sales by world region for all twelve months.
Note: Like most real world data, the data file may not be exact or correct. However, the data is in the correct format. The data is in rowcolumn table form, with the first row containing column headers you have to deal with that special case This is an application of the parallel array structure we discussed in Lab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
