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
Step: 1
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