The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
In C++.
Sort a 10x15 array of characters. Largest located at index [0][0-14] and smallest at index [9][0-14]. Create a procedure that passes the array to a print routine, then a procedure that sorts the array and returns the sorted array to the original procedure, and finish by using the same print routine. Fill the array with Lcekoeddhoffbmb Lkcmggjcdhhglif Cgldjhcekjigcdd Cgldjhcekjigcdz Bffmdbkcenlafjk Fggdijijegfblln Jjlncnimjldfedj Amliglfohajcdmm Balgfcaelhfkgeb Kmlhmhcddfoeile Note: This is a character array but the sorting is done as if there are 10 strings with each string having 15 characters. The output would be Lkcmggjcdhhglif Lcekoeddhoffbmb Kmlhmhcddfoeile Jjlncnimjldfedj Fggdijijegfblln Cgldjhcekjigcdz Cgldjhcekjigcdd Bffmdbkcenlafjk Balgfcaelhfkgeb Amliglfohajcdmm Full credit will be given if a file is used to read in the array. Name the file input.dat
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll