Question:

Assume that sentence is a variable of type string that has

Last updated: 2/19/2024

Assume that sentence is a variable of type string that has

Assume that sentence is a variable of type string that has been assigned a value Assume furthermore that this value is a string consisting of words separated by single space characters with a period at the end For example This is a possible value of sentence Assume that there is another variable declared firstWord also of type string Write the statements needed so that the first word of the value of sentence is assigned to firstWord So if the value of sentence were Broccoli is delicious your code would assign the value Broccoli to firstWord