Computers and Technology, 12.04.2021 23:10 sarahidan
Write a script that will ask the user to enter a sentence. The script should then report the number of words in the sentence and the average length of each word (hint: the split method will be helpful). The script should continue asking for sentences until the user provides a sentence with the word "quit" in it. The script should still analyze the sentence containing quit before exiting. Any capitalization of the word "quit" should be recognized as a command to quit the program
Note: if you have punctuation in your sentence such as commas or apostrophe's it is fine to count those characters in the length of the word they are paired with. You do not need to try remove them before finding the length of the word. For example, the word i'll has a length of 4 because we count the apostrophe as well
Sample runs:
Answers: 1
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
Write a script that will ask the user to enter a sentence. The script should then report the number...
Mathematics, 29.07.2019 20:00
Mathematics, 29.07.2019 20:00
Mathematics, 29.07.2019 20:00
History, 29.07.2019 20:00
History, 29.07.2019 20:00
Physics, 29.07.2019 20:00
Social Studies, 29.07.2019 20:00
Mathematics, 29.07.2019 20:00