Question: (55%) A two dimensional array (m by n) represents a stack of filing cabinets in an office. Perform the following (10%) Accept the values n
- (55%) A two dimensional array (m by n) represents a stack of filing cabinets in an office. Perform the following
- (10%) Accept the values n and m. Verify that n is between 3 and 5 and m between 1 and 10, Fill the array with random integer number in the range of 0 to 15. Print out the array.
- (10%) Find out how many time the number p appears in the table. The number p is requested by the program and validated. Print out the answer.
- (10%) Determine how many elements contains the number 15 and how many the number 0. Print out the results.
- (10%) Find the sum of the number is column p. The number p is provided by the user. Print out the result.( Can i atleast get the rest of the questions because it's due in 20 min?)
- (15%) Define an array of the size of 1 by 15. Fill the array as follows: Element (1,1) will hold the number of times the number 1 appears in the array, element (1,2) will hold the number of times the number 2 appears in the array and so on. Print out the results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
