2. Antares Shopping Mall organized a lottary for their customers. The customers filled out coupons writing their name, the shopping date and the name of the store that they made the shopping. The list of award winning customers are stored in the customers.txt. Write a C program that gets customer information from the file named customers.txt, which are name, date and store_name, each seperated by -- characters as shown in the file below. Then the program creates a report to announce the customer list in the following format: Date without the year information. For example; when the date info is “29/01/2010", program displays "29/01". Name and surname column, if the totalsize of the name and the surname is greater than 12, then the program displays "the first letter of the first name + dot + surname". For example; if the name is Ahmet Ali Cinar, it will be shown as A.Ali Cinar in the coupon. if the name is Mert Lacinkaya, it will be shown as M.Lacinkaya in the coupon. Name of the Store. Create the given report format for the given file as in the example run. customers.txt Yusuf Sevki Gunaydin--11/02/2018--MARKS AND SPENCER Mert Lacinkaya--24/02/2018--VAKKO Elif Gul--13/05/2017--TEKIN ACAR Hatice Cataloluk--12/07/2017--SIEMENS Attila Sengul--15/06/2017--OFFICE 1 SUPERSTORE Yusuf Evren Aykac--12/01/2018--GLORIA JEAN'S COFFEES Example Run: AWARD WINNING CUSTOMERS 11/02 Y.Sevki Gunaydin 24/02 M.Lacinkaya 13/05 E.Gul 12/07 H.Cataloluk 15/06 A.Sengul 12/01 Y.Evren Aykac MARKS AND SPENCER VAKKO TEKIN ACAR SIEMENS OFFICE 1 SUPERSTORE GLORIA JEAN'S COFFEES
2. Antares Shopping Mall organized a lottary for their customers. The customers filled out coupons writing their name, the shopping date and the name of the store that they made the shopping. The list of award winning customers are stored in the customers.txt. Write a C program that gets customer information from the file named customers.txt, which are name, date and store_name, each seperated by -- characters as shown in the file below. Then the program creates a report to announce the customer list in the following format: Date without the year information. For example; when the date info is “29/01/2010", program displays "29/01". Name and surname column, if the totalsize of the name and the surname is greater than 12, then the program displays "the first letter of the first name + dot + surname". For example; if the name is Ahmet Ali Cinar, it will be shown as A.Ali Cinar in the coupon. if the name is Mert Lacinkaya, it will be shown as M.Lacinkaya in the coupon. Name of the Store. Create the given report format for the given file as in the example run. customers.txt Yusuf Sevki Gunaydin--11/02/2018--MARKS AND SPENCER Mert Lacinkaya--24/02/2018--VAKKO Elif Gul--13/05/2017--TEKIN ACAR Hatice Cataloluk--12/07/2017--SIEMENS Attila Sengul--15/06/2017--OFFICE 1 SUPERSTORE Yusuf Evren Aykac--12/01/2018--GLORIA JEAN'S COFFEES Example Run: AWARD WINNING CUSTOMERS 11/02 Y.Sevki Gunaydin 24/02 M.Lacinkaya 13/05 E.Gul 12/07 H.Cataloluk 15/06 A.Sengul 12/01 Y.Evren Aykac MARKS AND SPENCER VAKKO TEKIN ACAR SIEMENS OFFICE 1 SUPERSTORE GLORIA JEAN'S COFFEES
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
write the
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education