1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DochEvi [55]
3 years ago
11

Five men are employed for strawberry picking. They all don't pick strawberries at the same speed. They

English
1 answer:
zaharov [31]3 years ago
4 0

Answer:

The man who picked the maximum quantity got 450 strawberries.

Explanation:

As the speed of the men goes on the ratio 1,2,3,4,5 and the manager decides to set the ratio 5,4,3,2,1 to balance the difference we can say that:

Speed

Man 1 = 1 x

Man 2 = 2 x

Man 3 = 3 x

Man 4 = 4 x

Man 5 = 5 x

where x represents the number of strawberries that they can collect at their specific speed

Then if the hours' ratio works on the inverse stating that the first man works 5 hours we can say that:

Man 1 = 5 hours

Man2 = 4 hours

Man3 = 3 hours

Man4 = 2 hours

Man 1 = 1 hour

taking these as a base the results after a working day for each man would be:

Man 1 = 5 hours (1x) = 5x

Man 2 = 4 hours (2x) = 8x

Man 3 = 3 hours (3x) = 9x

Man 4 = 2 hours (4x) = 8 x

Man 5 = 1 hour (5x) = 5 x

As presented in the problem two-man collected 250 each and two others collected more than these two and another one collected the maximum amount.

Then, Men 1 and 5 have collected the same quantity that is 250

250 = 5 x

x = 50 strawberries

The next pair would be men 2 and 4 who have collected 8 x each

8 x 50 = 400 strawberries

The last man is number 3 who has collected 9x

9 x 50 = 450 strawberries.

You might be interested in
For months, Robert had been taunting Saul, using words like
never [62]

Answer

For this week's lab, you will use two of the classes in the Java Collection Framework:  and . You will use these classes to implement a spell checker.

this lab, you will need to use some of the methods that are defined in the Set interface. Recall that if set is a Set, then the following methods are defined:

-- Returns the number of items in the set.

-- Adds the item to the set, if it is not already there.

-- Check whether the set contains the item.-- Check whether the set is empty.

You will also need to be able to traverse a set, using either an iterator or a for-each loop.

Reading a Dictionary

The file words.txt (in the code directory) contains a list of English words, with one word on each line. You will look up words in this list to check whether they are correctly spelled. To make the list easy to use, you can store the words in a set. Since there is no need to have the words stored in order, you can use a HashSet for maximum efficiency.

Use a Scanner to read the file. You can create scanner, filein, for reading from a file with a statement such as:

                    filein = new Scanner

(new File("/classes/s09/cs225/words.txt"));

and that a file can be processed, token by token, in a loop such as:

while (filein.hasNext()) {

    String tk = filein.next();

    process(tk); // do something with the token

}

(For the wordlist file, a token is simply a word.)

Start your main program by reading the words from words.txt and storing them in a HashSet. For the purposes of this program, convert all words to lower case before putting them in the set. To make sure that you've read all the words, check the size of the set. (It should be 72875.) You could also use the contains method to check for the presence of some common word in the set.

Checking the Words in a File

Once you have the list of words in a set, it's easy to read the words from a file and check whether each word is in the set. Start by letting the user select a file. You can either let the user type the name of the file or you can use the following metho

       }

Use a Scanner to read the words from the selected file. In order to skip over any non-letter characters in the file, you can use the following command just after creating the scanner (where in is the variable name f

(In this statement, "[^a-zA-Z]+" is a regular expression that matches any sequence of one or more non-letter characters. This essentially makes the scanner treat any non-letter the way it would ordinarily treat a space.)

You can then go through the file, read each word (converting it to lower case) and check whether the set contains the word. At this point, just print out any word that you find that is not in the dictionary.

Providing a List of Possible Correct Spellings

A spell checker shouldn't just tell you what words are misspelled -- it should also give you a list of possible correct spellings for that word. Write  method

static TreeSet corrections(String badWord, HashSet dictionary)

that creates and returns a TreeSet containing variations on badWord that are contained in the dictionary. In your main program, when you find a word that is not in the set of legal words, pass that word to this method (along with the set). Take the return value and output any words that it contains; these are the suggested correct spellings of the misspelled word. Here, for example, is part of the output from a sample program when it was run with the HTML source of this page as inp

Explanation:

3 0
3 years ago
When Mr. Lee walked out his door, the reader can tell that Mrs. Polansky shut her blinds because
Serjik [45]
Is there a multiple choice answers
3 0
3 years ago
In what sentence is the underlined word a preposition?
Evgesh-ka [11]
 The Constitution calls for equal rights for all
5 0
3 years ago
Think carefully about what the following quote might imply about the character and choose the most appropriate answer in the con
erastova [34]

Answer:

D. Peter is only concerned with the upper classes and his own pocketbook

Explanation:

Peter is only concerned with the uper classes and his own pocketbook, as you can read in the excerpt he expresses about the poorest and the invalid, with a kind of derogatory attitude towards them, wanting their visits only so the baths are talked about and become more popular.

7 0
4 years ago
Write a well-formed paragraph that summarizes the central ideas from the excerpt of Emerson’s essay Society and Solitude. Your p
zloy xaker [14]
To be true to themselves, people must be selective about the amount of time they spend with others.People are alone if they do not have an affinity for the people who are with them.Practically speaking, everyone is alone in the world.

4 0
4 years ago
Other questions:
  • Where does "Diary of a Wimpy Kid: Old School" take place?? Like what's the setting??
    10·1 answer
  • What is the time and place of this poem? How does the use of imagery help establish the setting of this poem? Quote
    9·1 answer
  • Sydney says 4/8 closer to 0, Is she correct?
    6·2 answers
  • Plz be a 100% right really need th help
    15·1 answer
  • Have anyone read the looking glass wars?
    7·2 answers
  • Is cut that makes an attractive presentation and is a low fat way to prepare fish
    15·1 answer
  • The kingdom described in "The Lady, or the Tiger?" is _____.
    10·1 answer
  • Noah wants to learn more about turtles, alligators, and crocodiles. Which category of information will be MOST helpful to him?
    5·1 answer
  • The scarlet ibis doodles real name.
    14·2 answers
  • (RL. 2.4) Reread the first sentence in paragraph 2 of Holinshed’s Chronicles: What is Banquo’s tone in this section?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!