Computers and Technology
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:

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, Princessirisperez0
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e. g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
image
Computers and Technology, 23.06.2019 16:00, natasniebow
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
image
Computers and Technology, 25.06.2019 01:30, marianaescamilla404
What was the advantage of using transistors instead of vacuum tubes in the second-generation computers? a. computers were drastically reduced in size. b. computers no longer produced errors. c. computers became affordable. d. computers could run on electricity.
Answers: 1
image
Computers and Technology, 25.06.2019 14:00, meganwintergirl
Suppose we are performing a binary search on a sorted array called numbers initialized as follows: // index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 int[] numbers = {-2, 0, 1, 7, 9, 16, 19, 28, 31, 40, 52, 68, 85, 99}; // search for the value 5 int index = binarysearch(numbers, 5); write the indexes of the elements that would be examined by the binary search (the mid values in our algorithm's code) and write the value that would be returned from the search. assume that we are using the binary search algorithm shown in lecture and section.
Answers: 3
Do you know the correct answer?
Write a script that will ask the user to enter a sentence. The script should then report the number...

Questions in other subjects:

Konu
English, 20.10.2020 20:01
Konu
Mathematics, 20.10.2020 20:01