subject

The Best Buy Data Analytic Department ask you to create a CSV file containing the total sales information of their stores in Chicagoland from the second quarter of the year (Jan, Feb, March, and April). Procedure:
a. Create an application (CreateCSV) that will create a text file (with CSV extension) that contains the following data in the row: StoreName, JanSales, FebSales, MarSales, AprSales, and TotaSales.
b. Make sure that the file add the comma delimiter.
c. The first row (row header) of the CSV file must be: Store, January, February, March, April, Total.
d. The App must ask the user to enter the file name to be create Ex: FileName. csv.
e. The, the App will ask for 5 different stores in ChicagoLand. Ex.: Chicago, Naperville, Evanston, Oakton, Skoki
f. The App will calculate the total sales for each month of the quarter.
g. You will need to create a class call FileCreator. You must implements the following function: the function constructor (FileCreator) that will have the FileName(AnyName. csv) as parameter. Create The WriteFile function with the following parameters: StoreName, JanSales, FebSales, MarSales, and AprSales. The WriteFile function must calculate the total sales for the store and write this information in the file: StoreName, JanSales, FebSales, MarSales, AprSales, and TotaSales. The function WriteFile won’t return anythin And, create the CloseFile that will close that file opened.
h. You will need to generate the following files: CreateCSV. cpp, FileCreator. h, and FileCreator. cpp.
Output CSV file sample:
Store, January, February, March, April, Total
Chicago, 150000, 125650, 210000, 100000, 585650
Naperville, 100000, 100000, 200000, 50000, 450000
…….
Class Diagram:
FileCreator
- MyFile: Ofstream
+ FileCreator(String): void
+ WriteFile(String, double, double, double, double, double): void
+ Write Header():void
+ CloseFile():void
Extra Credit
Use a loop to add the month sales, and create the header row (Write Header).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Which statement best explains how plant cells use photosynthesis to maintain homeostasis? they use glucose and water to make energy. they break down glucose into fat. they combine oxygen and water to make glucose. they make glucose from carbon dioxide and water.
Answers: 1
question
Computers and Technology, 22.06.2019 03:30
Jessie has received a contract to build a real-time application for a baker. however, the baker doesn't want to invest too much money. his only requirement is that he wants the customers to know which cupcakes are available at what time and in what quantity. so his core requirement is that the details of product should be in real time. what platform can jessie use to develop this application?
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
You know the right answer?
The Best Buy Data Analytic Department ask you to create a CSV file containing the total sales inform...
Questions
question
Chemistry, 24.03.2020 18:11
question
English, 24.03.2020 18:11
question
Mathematics, 24.03.2020 18:11
Questions on the website: 13722361