a C program.Create a sales automation project that sells products with the help of product information, customer information. The analysis of the purchase products should be made and shown according to the customer, product type, quantity and amount. Keep data with linked lists feature. In sales automation, product information consists of:: product number, product name, product type (i.e. 1 for fruit, 2 for vegetable, 3 for meat etc. ), price and next product object’s address (pointer) Customer information consists of: customer number, customer name, customer type (i.e. 1 for personal, 2 for commercial), x coordinate of customer location, x coordinate of customer location and, next customer object’s address (pointer) Purchased item information consist of as follows: purchased item number, invoice number, customer number, product number, product cost and next purchased item object’s address (pointer)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a C program.Create a sales automation project that sells products with the help of product information, customer information. The analysis of the purchase products should be made and shown according to the customer, product type, quantity and amount. Keep data with linked lists feature.

In sales automation, product information consists of:: product number,

product name,

product type (i.e. 1 for fruit, 2 for vegetable, 3 for meat etc. ), price and

next product object’s address (pointer)

Customer information consists of: customer number,

customer name,

customer type (i.e. 1 for personal, 2 for commercial), x coordinate of customer location,

x coordinate of customer location and, next customer object’s address (pointer)

Purchased item information consist of as follows: purchased item number,

invoice number, customer number, product number, product cost and

next purchased item object’s address (pointer)

Sales automation menu can be designed as follows:

Sales
Customer Information
Product Information
Customer Analysis
Product Analysis
After selecting the sales menu, first the last invoice number should be determined, then the purchasing process should be started by entering the customer number.

In product purchase, the product number and quantity should be entered then the product cost should be calculated and the purchase data should be stored. After that the next product purchase process can be passed.

After the purchased items are finished, the shipping fee should be calculated and the purchase process should be completed. The shipping fee should be calculated according to the distance of the customer and the shop.

In the Customer Information section, the information of all customers, customers according to customer type or a single customer should be listed. The choice can be made from the menu.

In the Product Information section, the information of all products, products according to product type or a single product should be listed. The choice can be made from the menu.

In the Customer Analysis section, the products purchased by a customer should be listed and the most preferred product and the least preferred product should be determined and shown.
The total amount of the products purchased by a customer’s invoice should be listed and the maximum invoice amount and the minimum invoice amount should be obtained and shown.
The total amount of the products purchased by all the customers should be listed.
The total shipping costs of the customers should be listed.
In the Product Analysis section, the total purchase amount of the product determined by the user should be listed and shown its quantity .
The total purchase amount of a product type should be listed and shown the most preferred product.
The total purchase amount for all products should be listed.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY