Question: Q2 [15 marks] Write a C++ code of a function called DeleteItem) of the UnsortedType class using the array based implementation to perform a conditional
![Q2 [15 marks] Write a C++ code of a function called](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2e4c298514_30566f2e4c1effab.jpg)
Q2 [15 marks] Write a C++ code of a function called DeleteItem) of the UnsortedType class using the array based implementation to perform a conditional delete. The delete is only to be made if an item with the same key exists in the list. A boolean reference parameter, ItemExists, is set to indicate if the item is already in the list. You are given below the Deleteltem method of the UnsoctedType class without the conditional delete void UnsoxtedTypeDeletltem dtemTvps item)t int location 0 while (item list[location]) location++ list [location]= list [size-1]; size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
