create a pseudocode that will Write 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.
Start
Declare variable numberNames as integer
Declare variable lastName as integer
Read numberNames
Create array names[]
for i = 0 to numberNames i=i+1
Read the lastName
Add name to the array names
sort array names
for i = 0 to numberNames step 1
Display names[i]
Stop
Comments
Leave a comment