Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started