Question: Write a non-member method called Countltem, to find the number of elements that are greater than 10. For example, if the queue has 8 items

Write a non-member method called Countltem, to find the number of elements that are greater than 10. For example, if the queue has 8 items such as {9,11, 14,10,35,29,5,7}, then the output should be Count =4 (number of items that are greater than 10). Note: The content of the queue should not be changed. int Countltem(QueueType 8 queue1) \{ in count =0; ItemType item; while \{ if (item >10 ) count ++; \} while \{
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
