Write My Paper Button

WhatsApp Widget

Wilbur Wright College CIS 142 C++ Programming Language Prof. Gustavo Alatta Lab

Wilbur Wright College

CIS 142 C++ Programming Language

Prof. Gustavo Alatta

Lab # 6

Points: 100

Instructions:

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:

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.

Make sure that the file add the comma delimiter.

The first row (row header) of the CSV file must be: Store, January, February, March, April, Total.

The App must ask the user to enter the file name to be created. Ex: FileName.csv.

The, the App will ask for 5 different stores in ChicagoLand. Ex.: Chicago, Naperville, Evanston, Oakton, Skokie.

The App will calculate the total sales for each month of the quarter.

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 anything.

Finally, create the CloseFile that will close that file opened.

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:

The post Wilbur Wright College CIS 142 C++ Programming Language Prof. Gustavo Alatta Lab appeared first on PapersSpot.

CLAIM YOUR 30% OFF TODAY

X
Don`t copy text!
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
???? Hi, how can I help?