write a program using c which maintains the product list of codes by storing them in an array and allowing the product codes to be easily added and removed
In main define an array of 1,000 product codes (each code is 3 digits)
Display a menu with the options to add, remove, or display the codes. Allow the user to repeatedly add, remove, or display the codes.There will be 3 functions: add, remove, and display.
Function 1. Add_Codes: this function adds the new product code to the array, at the end of the existing product codes; the array can contain any number of product codes at any time; however, if the array becomes full, do not add the code and display a “full†message.
For example, if the array of product codes contained these four values: 126 498 365 712, and the Add_Codes function was called to add code 695, the five array values would then look like this: 126 498 365 712 695 (695 added to end).
Function 2. Remove_Codes: this function will match the product code to the codes in the array and if matched, will move all the codes in the array which are to the right of the matched code to the left one position, effectively eliminating the matched code (hint: after shifting the codes, adjust the number of codes in the array). If the product code does not match any code in the array display an error message, or if the array becomes empty do not remove the code and display an “empty†message.
If the Remove_Codes function was then called to remove code 365, the array’s four values would look like this: 126 498 712 695 (codes to the right of 365 shifted “down†to the left, over 365).
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!