Write a program which declares and initializes a 4x6 array of integer values. Store into each element a value between 0-9. Pass this array variable to a function named digitizer which has the...




Write a program which declares and initializes a 4x6 array of integer values. Store into each element a value between 0-9. Pass this array variable to a function named digitizer which has the signature: void digitizer( int array[ 4 ][ 6 ] ); This digitizer function should use a for-loop to change each element of the array to 1 if its original element value was 5 or above. Otherwise, change the element value to 0 otherwise. (Extra Credit: Show how your code would change if you used a switch statement). Using the embed icon shown above show screenshots demoing the execution of your program.








3




















Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here