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: | 304 Weeks Ago, 3 Days 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 am unsure of my pseudocode being correct and my javascript is not working properly. Can I please get help with fixxing the problem?
Â
write the pseudocode program that creates an array, prompts the user to enter five cities and displays the array's contents. The array contains five elements. Use a for loop to prompt the user to enter cities and then use// Program name: City Array
// Purpose: Enter five cities and display the array's content
// Author: Courtney Credle
// Date last modified: 18-July-2017
START
   Declare citynames(5) as string
   Declare index as integer
   For (index=0; index<5; index++)
   {
      INPUT(citynames(index))
   }
   For (index=0; index<5; index++)
   {
      DISPLAY(citynames(index))
   }
END
  // Thank the user and end the program
  Display "Thank You"
 Â
 another for loop to display the contents.
----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll -----------be -----------qui-----------ckl-----------y