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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
You know the right answer?
Public static int getrandom(int rnd) - the given getrandom() method that you must incorporate so tha...
Questions
question
Geography, 11.01.2021 05:40
question
Mathematics, 11.01.2021 05:40
question
Mathematics, 11.01.2021 05:40
question
Social Studies, 11.01.2021 05:40
Questions on the website: 13722362