Assume the following array is parallel to the Scores array of Programming Challenge 3. Write a program

Question:

Assume the following array is parallel to the Scores array of Programming Challenge 3. Write a program to sort this Player array in alphabetical order, keeping the Scores array parallel. Use either of the sort routines covered in this chapter. Include code to display each player’s name and score. To get your column data to line up as shown, you can use the tab indicator, /t, in your Write statements, as shown in Section 8.5.

Player[0]

Your display should look like this:

Ann ........................486
Bob .........................73
Granny ..................846
Jane .......................912
Joe .........................198
Lily ........................319
Liz .........................989
Marty ....................651
Rosy ......................216
Tim .........................85

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: