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.(C programming language) In sales automation, product information consists of:: product number,

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

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.(C programming language)

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
Knowledge Booster
Structure
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning