subject

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:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
In a cellular network each cell is controlled by a tower what are these towers called?
Answers: 3
question
Computers and Technology, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
You know the right answer?
Write a script that will ask the user to enter a sentence. The script should then report the number...
Questions
question
Mathematics, 13.12.2019 04:31
Questions on the website: 13722362