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, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
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, 25.02.2020 01:04
question
Mathematics, 25.02.2020 01:04
question
Mathematics, 25.02.2020 01:04
question
Chemistry, 25.02.2020 01:04
question
Mathematics, 25.02.2020 01:04
Questions on the website: 13722363