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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:00, tchloe448
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isn’t the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, deflox74
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
image
Computers and Technology, 23.06.2019 20:50, terryhgivens5349
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, glitch14
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
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 in other subjects:

Konu
Social Studies, 28.12.2021 20:00