Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:00, xojade
Which of these is an example of an integrated presentation? a. a table created in powerpoint b. an image pasted into powerpoint c. a caption created in powerpoint d. an excel chart pasted into powerpoint
Answers: 1
image
Computers and Technology, 23.06.2019 12:30, umimgoingtofail
What is the difference between the internet and the world wide web?
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, kkpsmith
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, Cinders13
How can you make your column headings stand out?
Answers: 1
Do you know the correct answer?
Public static int getrandom(int rnd) - the given getrandom() method that you must incorporate so tha...

Questions in other subjects: