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, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
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
History, 11.03.2020 05:29
Questions on the website: 13722361