Ask a New Question

Question

Write the pseudocode for an application that accepts enter eight friends’ first names and displays them in alphabetical order
8 years ago

Answers

Steve
there are lots of sort routines you can find online. So, this will accept an arbitrary number of names:

n=0
name="x"
while name ≠ ""
read name
if name≠"" then names[n++] = name
end while

snames = sort names,n

while n>0 print names[n--]
8 years ago

Related Questions

How would I write pseudocode that describes the process of looking up a word in the dictionary? Write a pseudocode that will accept items bought by a customer and place them in the appropriate cl... Write a pseudocode which will accept two integers from the user and calculate the sum and product. T... write the pseudocode for the following scenario Write the pseudocode that will produce a receipt in the format specified above. Your solution shou... Write the pseudocode for the following scenario: A shop owner needs to increase the prices for all... Write the pseudocode for the scenario below. A teacher has a class of 10 learners who recently wrot... HOW TO WRITE pseudocode TO add the number 1 to 100 and display the sum how to write pseudocode add the number from 1 to 100 and display the sum Write the pseudocode for an application that will pass the number of games a player has played to...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use