Course Solutions Uncategorized (Solved) : 1 Consider Following Sentence Many Strawberries Breakfast Today Write Function Output Many Q26185079 . . . .

(Solved) : 1 Consider Following Sentence Many Strawberries Breakfast Today Write Function Output Many Q26185079 . . . .

 

1(A)Consider the following sentence: “I have had so manystrawberries for breakfast today.” Write a function that willoutput how many plural words are in any given sentence.

Example: var sentence = “I have had so many strawberries forbreakfast today.”

Plural(sentence)  1

1(B) Write a function that can tell whether numbers in a listare prime or not. The function should output an array that holdsthe values for if that number in the input array was prime ornot.

Example:

           var myArray = [1, 2, 3, 4, 5]

           Prime(myArray) è [false, true, true, false, true]

Expert Answer


An answer will be send to you shortly. . . .

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post