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
Pie
3 years ago
12

Correct quotation for I would like to ride an elephant said Dereck

English
2 answers:
Mrrafil [7]3 years ago
5 0

“I would like to ride an Elephant,” said Dereck.

kykrilka [37]3 years ago
4 0

"I would like to ride an elephant." said Dereck.

Hope I helped soz if I'm wrong ewe.

~Potato.

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
In Anne Frank: The Diary of a Young Girl, how does Anne make a connection between herself and Peter Van Daan?
Sindrei [870]
Peter van Pels was 15 years old when he had to go into hiding with his parents. They arrived at the hiding place one week after the Frank family. Peter was the only boy in the Secret Annex.
4 0
3 years ago
Read 2 more answers
What can be inferred about Saidu's health even though he is telling the other boys he is fine? Use at least two details from pag
PSYCHO15rus [73]

Answer:

We can infer that Saidu was not feeling well. He was probably hurt and in pain and wanted to be attended to.    

       

Explanation:

We know this from the details provided in pages 82 and 83 where Saidu describes how he fell. He was asked how he is doing but stated that he is okay.

He also mentioned that later that day, he looked in the direction of Junior and sorely wanted him to ask if he was fine. This could only mean that he was in pain.

Cheers

3 0
4 years ago
Select all that apply.
emmainna [20.7K]

I believe the answers would be A, C, and E.

4 0
4 years ago
Read 2 more answers
Families have their own rules for how male and female members should talk and behave. Think back to the advice you have heard in
jonny [76]
Unspoken is like things you picked up on without being told and articulated is things you were told, like if your mom said don’t burp it’s up lady like
7 0
3 years ago
Read 2 more answers
Other questions:
  • A character has god-like qualities but is not immortal, having physical and emotional weaknesses. This character receives help f
    13·2 answers
  • Why doesn't Odysseus clasp Nausicaa's knees?
    8·2 answers
  • What is synonym plagiaris?​
    5·2 answers
  • What is the meter pattern in these lines from"On Imagination" by Philis Wheatly?
    11·1 answer
  • Yo pweaseee help me w my questions in health!!
    10·2 answers
  • What topic sentence and a main idea is accurate
    12·1 answer
  • In the story, what cause the conflict betwween the narrator and the old man
    11·1 answer
  • If you knew you were guaranteed to win the governorship's position, would you run for the office? If so, what issues would you a
    9·1 answer
  • Ahahah I rly love this one it’s a rly hard choice Would you rather have everyone you know be able to read your thoughts or for e
    14·2 answers
  • 1.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!