Page 1 of 1

Question 2 We are given an array a[size], size = 400, where each element in the array contains an integer with a value b

Posted: Tue Jul 05, 2022 10:19 am
by answerhappygod
Question 2 We Are Given An Array A Size Size 400 Where Each Element In The Array Contains An Integer With A Value B 1
Question 2 We Are Given An Array A Size Size 400 Where Each Element In The Array Contains An Integer With A Value B 1 (33.05 KiB) Viewed 13 times
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