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, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
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
Mathematics, 14.04.2021 18:30
question
Mathematics, 14.04.2021 18:30
Questions on the website: 13722363