![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.04.2020 00:31 liloleliahx2
For this project you have been asked to write a program for a local store owner. The store owner wants to keep a record of the name of his customers as well as the money they spend at each visit. Your program will dynamically allocate two arrays one to store the names and another one to store the amount of the purchase. The size of both arrays will be dynamically determined from the value entered by the user. Your program should allow the user to enter name-purchase pairs. For each customer entered to the store, the user types the customer’s name followed by the customer’s purchase amount. After the user enters all the customers, your program should display the list of all customers with their purchase amount. You will also need to create a function to calculate the average of the purchases by all the customers. Note: Use pointer notation rather than array notation. Also make use of the newoperator to dynamically allocate memory. Input validation: don’t accept negative amount and empty strings (e. g., "", " ").Both display and calculate should be functions. To help you out, here are their prototypes:void display(string*, double*, int); double calculate(double*, int); void sort(string*, double*, int);Check the PA4_Demo video to see a sample runof the program
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:00, abbygriffin2009
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
You know the right answer?
For this project you have been asked to write a program for a local store owner. The store owner wan...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.10.2021 14:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.10.2021 14:00