subject

Public static int getrandom(int rnd) - the given getrandom() method that you must incorporate so that zylabs can properly test your program. 2. string getsubject(int rnd) - accepts a random number, maps the random number to an integer value representing one of the subject keywords. that subject keyword is then located in the string by using the comma separators to count up to the correct word. the correct word is then returned to the calling method. calls a method getword to locate the correct word to be returned. 3. string getadjective(int rnd) - accepts a random number, maps the random number to an integer value representing one of the adjective keywords. that adjective keyword is then located in the string by using the comma separators to count up to the correct word. the correct word is then returned to the calling method. if the random number is even, then the adjective should be converted to uppercase before being returned. calls a method getword to locate the correct word to be returned. 4. string getobject(int rnd) - accepts a random number, maps the random number to an integer value representing one of the object keywords. that object keyword is then located in the string by using the comma separators to count up to the correct word. the correct word is then returned to the calling method. calls a method getword to locate the correct word to be returned. 5. string getemphatics(int rnd) - accepts a random number, maps the random number to an integer value representing one of the emphatics available. that emphatic is then located in the string by using the comma separators to count up to the correct emphatic. the correct emphatic is then returned to the calling method. calls a method getword to locate the correct emphatic to be returned. 6. string getword(string words, int whichword) - accepts one of the string constants (ie, subject, adjective, object, etc.) and an integer representing the desired location of the word that should be retrieved. uses the fact that the string is comma separated to locate the correct keyword and return it. if the integer whichword contains a position that cannot be found in the string (e. g., the 7th keyword in the subject string), then the empty string should be returned.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, bombbomb2157
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
image
Computers and Technology, 22.06.2019 17:00, ruddymorales1123
What allows you to create a wireless connection among your smart devices
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, andrew412603
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
You know the right answer?
Public static int getrandom(int rnd) - the given getrandom() method that you must incorporate so tha...

Questions in other subjects: