Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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