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:30
Facial expressions and gestures are examples of messages.
Answers: 3
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
Computers and Technology, 24.06.2019 22:00
Need getting google account back, big issue
Answers: 2
Write a script that will ask the user to enter a sentence. The script should then report the number...
History, 01.04.2020 16:48
Mathematics, 01.04.2020 16:48
History, 01.04.2020 16:48
Physics, 01.04.2020 16:48
Mathematics, 01.04.2020 16:48
Social Studies, 01.04.2020 16:49
Mathematics, 01.04.2020 16:49
Spanish, 01.04.2020 16:49
Mathematics, 01.04.2020 16:49
History, 01.04.2020 16:49