Exercise 1

Create a program that inputs a string of variable length, but no longer than 80 characters. Pass the string to a function called reversePrint to print the string out in reverse order. Use a pointer arithmetic to print each character. The original string can not be changed. Use some method (sentinel , menu, etc) to accept additional strings and exit when done.

Exericse 2

Create a program that can sort a multidimensional array of at least 3 columns and 10 rows. You may use the bubblesort routine from chapter 6. Of course you will have to modify it. *** If you use an array of pointers to the array to implement the sort function you may get an additional point for each of the sort( total of 9 extra credit)

Example of array

4 125 462
12 475 111
300 27 42
Etc.

Make all numbers unique for testing purposes.

You must do at least 3 of the sort functions. The other 3 Sort functions Function to Sort the array by column 0 keeping the row information together, Ascending , Descending. Function to Sort the array by column 1 keeping the row information together, Ascending , Desending. Sort the array by column 2 keeping the row information together, Ascending, Descending.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.