Question: Question No 2 a. Implement the scenario, which count the total number of times the value val appears in integer array arr[ ] of size

Question No 2 a. Implement the scenario, which count the total number of times the value val appears in integer array arr[ ] of size count. For example, if arr[]={1,2,3,4,1,2,4,4,4}, count=9, and val=3 then output should be 1, since 3 appears only 1 time in array. Similarly, if val=1, then the output should be 2 as value 1 appears 2 times in array. Find for arr[50], count=? And val=6. (in c++)

b . Make a function sumofmiddlenumber( ) which take 4 digit input from the user as an aurgument. You have to return the sum of middle two digits and display in the main function.( in c++)

c. Take five integer values from the user. Than store these values into a string using a pointer. Then print the elements of the variable on the screen. (in c++)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!