Code must be done in C language.
-Implement a C program that is explained below. Your main program should find how many different products in the file [login to view URL] and it should give random price for each product. Then it should save these products and their prices to price.txt.
-After that, program should create seven child processes that can perform several tasks listed below. • Find how many different products in the file [login to view URL] and show products and prices. • Find how many times a given product is sold. (Note: Product should be taken from user in parent process.) • Show the transaction(s) of specific customer and calculate total price that is paid by the customer. (Note: Customer id should be taken from user in parent process.) • Find the customer who purchase most items. • Show most profitable day and its price.
Parent process should send the tasks randomly to the child processes via pipes.
- If you implement two-way pipes and instead of printing the result of task in the child process, if you can return them to the parent and print them there
12 фрилансеров(-а) готовы выполнить эту работу в среднем за $36
Should this program run on windows or linux? Do you require a visual studio solution file, if so for which version? Please contact me with this information. It is possible to implement this within one day.
hello, i have strong c background, threads, fork, synchronization etc. i can do this task for you. Reagards_______________________________________________
I've worked with threads, UNIX pipes and concurrent data structures before. Here's some of my C code to show for it: [login to view URL] I can positively finish the work within 2 days