Question: IT Manager at Basma hypermarket wants to develop a small application to maintain the records of daily sold products. But with two condition that products
IT Manager at Basma hypermarket wants to develop a small application to maintain the records of daily sold products. But with two condition that products which are purchased from factory and placed in the store first must be sold first and second condition that there can be maximum 100 products at a time in the file. The following information must be included in the records of sold products. Product ID, Quantities Sold } 1. Enqueue 2. Display 3. Exit Press any other key to exit Enter your choice : 1 Enter Product ID : 2015 Enter Quantities : 45 1. Enqueue 2. Display 3. Exit Press any other key to exit Enter your choice : 2 ProductID Quantity 2015 45 - 1. Enqueue 2. Display 3. Exit Press any other key to exit Enter your choice : b) Insert operation for adding a record {product_id, quantity} of a new product. If the file is full then show an error message - "Overflow!" c) Show operation to show all the added records in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
