Implement a C program to read in a list of sales records from
1 Pages214 Words478 Views
Added on 2019-09-16
BookmarkShareRelated Documents
Implement a C program to read in a list of sales records from the file 'purchases.txt'.The 'purchases.txt' stores one sales record per line, and the lines look like this:There are total of 6 data fields, and they represent: date, time, store location, item category,sales value and payment method respectively, and they are separated by tabs.Based on the sales records, your program is required to generate a sales executive report withthe following information:- The figures of the total sales grouped by the payment methods.- The top THREE store locations with the highest aggregate sales.- The THREE store locations with the lowest aggregate sales.- The peak hour at which incurs the highest aggregate sales.- The off peak hour at which incurs the lowest aggregate sales.Hour slots are defined in the 30 minute intervals.(e.g. Sales records with the time 10:00, 10:15 are considered to be in 10:00 slot; salesrecords with the time 10:31, 10:59 are considered to be in 10:30 slot)Below is a sample output of the program running against a much smaller data set:
Found this document preview useful?
Related Documents
Process Automation for Uniform Zombielg...
|6
|936
|64
Results of the analytics performed along with the Rational for performing Presentation 2022lg...
|13
|1925
|26
Big Data Analytics of YouTube Data using IBM Watson - Deskliblg...
|11
|646
|245
Understanding the Digital Revolution: Hat Bonanzalg...
|6
|846
|62
Numeracy and Data Analysislg...
|8
|1349
|23
Understanding the Digital Revolution: Shirt Citylg...