Question #254894

Algorithm for a program that allows the user to enter any number of names; i.e – last name and first name. Using one of the predefined methods of the Array class, order the names in ascending order. Display the results.

Expert's answer

Start
   Declare variable numberNames
   Read the number of names
   Create array names[]
   for i = 0 to numberNames step 1
       Read the last name
       Add name to the array names
   End for
   Array.Sort(names)
   for i = 0 to numberNames step 1
	    Display names[i]
   end for
Stop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS