I got this from a website it is a studyguide but im not sure on how to do these can someone help.
Write a code snippet that will use a two-dimensional array of type integer to
produce a multiplication table, where the contents of each cell will be the
product of its two subscripts. The array will have 10 rows and 10 columns. Fill
the array by ROW.
Write a function called reverseArray that will be passed an array of type integer and its
size. The function will reverse the order of the elements in the array IN PLACE as
discussed in class. Any other method will not receive full credit. The function will
display the array in its original form, then after the reversal process, display the array in
the reversed form . Nothing is passed back to main.
Declare a record data type called cds. Include the following fields in the structure and
their data types:
?? CDName – string - 20 characters maximum
?? Artist - string - 20 characters maximum
?? RunTimeHrs - integer
?? RunTimeMin - integer
?? RunTimeSec - integer
?? CostOfCD - float (real)…make sure that there are only TWO numbers to the right of
the decimal point
Declare an instance of an array variable called MyCDs. The array will contain 15
elements of data type cds as described in the question above.
Write a function called CalculateTotalRunTime that will calculate and output the total
running time of the cds in the array in hours, minutes and seconds. Note the following:
?? Assume that the function will be passed the array MyCDs and its size
?? Assume that the total running time will be displayed from inside the function
?? Make sure that you provide an appropriate output statement.
?? Nothing is returned from the array to the main algorithm
?? Select the appropriate passing method
Use the BubbleSort function provided in your text to COMPLETELY trace the sort of an
array of elements of type integer called List. The initial list of array elements is given
below. Include ALL variables and expressions in your trace
and show the state of the array at the end of each pass.
Initial State of List: 16, 12, 11, 5, 18, 1