Question 2 We are given an array a[size], size = 400, where each element in the array contains an integer with a value b
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2 We are given an array a[size], size = 400, where each element in the array contains an integer with a value b
Question 2 We are given an array a[size], size = 400, where each element in the array contains an integer with a value between 1 and 200. 13 out of 20 points Write a C++ function, name it Countme, that takes the array a and then it counts and outputs how many times each of the values 1 to 200 appeared in the array. Response Feedback: completely inefficient solution complex structure and calls.. solution is 4 lines Question 31 7 out of 15 points Given a 2D array of integers bir ][ col] with r rows and col columns. The array is already filled with integer values (so do not write code to fill the array). Write C++ statements that input from the user an integer value named target and output true if target is found in the array, otherwise, output false. Note: Write an efficient solution. You cannot use break nor exit nor return in solving this problem Response Feedback 2 loops and wrong solution -8