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: | Jul 2017 |
| Last Sign in: | 305 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
I need help with the following program. It is supposed to sort the data according to the account number. At the end it only sorts one column of information (account number) but the rest of the rows do not follow.Â
You have to input 5 lines of data to reach the end of the program. The data input must resemble the following:
100 John 28.4Â
233 Smith 37.9
3 Betty 18
18 Sam 89.9
400 Tom 57.9Â
As you can see when it sorts the information at the end, its only the account number that changes. My instructor informed me to "swap the structure with the accountNumber." I'm not sure what he means. Attached is the program.Â
Thanks for reading!Â
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly