Access Millions of academic & study documents

Algorithm Development

Content type
User Generated
Subject
Computer Science
Type
Homework
Showing Page:
1/3
Running head: Algorithm Development
1
ALGORITHM DEVELOPMENT IN PSEUDOCODE
STUDENT’S NAME
DATE: September 15, 2019

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
Algorithm Development
Problem statement
The algorithm will result in a message that is created from five words.
The algorithm will first create five Arrays.
Each Array stores a list of words.
The algorithm will generate a random number that will be used as an index into each Array.
The algorithm will use this index to select one word from each of the five Arrays to form a
message.
Algorithm
//declare 5 arrays with 5 word each
Array 1 = initialized with prepopulated words;
Array 2 = initialized with prepopulated words;
Array 3 = initialized with prepopulated words;
Array 4 = initialized with prepopulated words;
Array 5 = initialized with prepopulated words;
//Random function to generate an index for generating the message
Random number = Random number generator between 0 to 4
Use the random number to select random word from each of the array
For each of the array select a random array index
Get the word in each of the selected random index
Message = word in array 1+ word in array 2 + word in array 3 + word in array 4 + word in array 5
While array equal to 5
Print the message

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Running head: Algorithm Development ALGORITHM DEVELOPMENT IN PSEUDOCODE STUDENT’S NAME DATE: October 12, 2017 1 Algorithm Development Problem statement The algorithm will result in a message that is created from five words. The algorithm will first create five Arrays. Each Array stores a list of words. The algorithm will generate a random number that will be used as an index into each Array. The algorithm will use this index to select one word from each of the five Arrays to form a message. Algorithm //declare 5 arrays with 5 word each Array 1 = initialized with prepopulated words; Array 2 = initialized with prepopulated words; Array 3 = initialized with prepopulated words; Array 4 = initialized with prepopulated words; Array 5 = initialized with prepopulated words; //Random function to generate an index for generating the message Random number = Random number generator between 0 ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4