Trying to do this on my own need some questions answered
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
Some general suggestions -
1. Find another tutorial/study guide. In this case, a "code snippet" is worthless. You can't run a snippet, so you'll never know if it was right! When you see a published code snippet, it has (hopefully) been stripped-out of a working program. If you are going to use this study guide, then you should write a complete program to test-out the code. If you are totally lost and don't know where to start with this "assignment", then put it aside for now, and find a beginning tutorial.
There is a tutorial here at cprogramming.com, and another at cplusplus.com.
2. Get a book. Most online tutorials seem to be very limited. Any good beginning C++ book will have much more information. For example, Teach Yourself C++ in 21 Days by Jesse Liberty is about 750 pages. Accelerated C++ by Koenig & Moo is about 350 pages.
I'm not saying that the information doesn't exist on the Internet. It's just not well structured or organized for self-study. Lot's of us here are also learning on our own, but most of us have some books.
3. To avoid negative responses here at cprogramming.com, please read the Forum Guidelines and the code-tags message.