Question: write a c++ code: Question 2 (40): Write a driver program to test the class you have implemented: 1. Create an array of strings objects

write a c++ code:

Question 2 (40):

Write a driver program to test the class you have implemented: 1. Create an array of strings objects named myfood_items of size 5 and fill it from the user. ( 5 points) 2. Create a StoreShelf object named shelf with maxsize 10 and fill it using the food items from myfood_items array. ( 10 points) 3. Add 10 new items to shelf with values entered from the user. ( 5 points) 4. Update the kth item in shelf with value entered from the user, where k is also provided by the user. ( 5 points) 5. Remove the first 4 items from the list in shelf. ( 5 points) 6. Print the utilization of the StoreShelf to the screen. ( 5 points) 7. Display the details of the StoreShelf. ( 5 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!