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
shutvik [7]
3 years ago
15

Question 4

English
2 answers:
Jet001 [13]3 years ago
8 0
If a sentence is complete is doesn’t leave you questioning or wandering what has happened.
Question 4 is B.Fragment
Question 5 is A. Complete
Veseljchak [2.6K]3 years ago
5 0

Answer:

Explanation:

If a sentence is complete is doesn’t leave you questioning or wandering what has happened.

Question 4 is B.Fragment

Question 5 is A. Complete

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
Which is correct?
Kay [80]
<span>After the customers ate, the leftover food was thrown away       
is the right answer </span>
6 0
4 years ago
Read 2 more answers
Is it true that atticus gives jem a spanking is what made the kids gain a new respect for him. in kill a mockingbird?
nadya68 [22]
No. that is false. atticus never whipped his kids.
8 0
3 years ago
In Revolution 2.0 “Why Protest”? What are some of these statistics, and what purpose is their function in the document?
Oduvanchick [21]

1.  shows the number of protesters this shows what the magnitude of disagreement with what is being protested 

2.  shows education of participants this shows how much were the actions of the protesters 

3.  the number of signatures collected for a different decision to show the total number of dissenters 

4. shows the number of victims in the period of protest shows the opposing side of the protest not from the best point of view

7 0
3 years ago
Decide if the statement is written in standard English. If the statement is in standard English, select "True." If it is not in
Digiron [165]

Answer:

True

Explanation:

Hope this helps

3 0
4 years ago
Read 2 more answers
Other questions:
  • Which incident helps to support the following inference: Virgil protects Dante as he makes his journey
    10·1 answer
  • Which feature is most likely to change depending on your audience
    5·2 answers
  • So one of my assignments says
    13·1 answer
  • Select the detail that supports the idea that Chinese immigrants were seeking the "American Dream." They came to the United Stat
    15·2 answers
  • Which two lines foreshadow the tragic fate of Romeo and Juliet
    11·1 answer
  • Which sentence should be revised to reduce wordiness?
    6·1 answer
  • Choose the function of the capitalized word in the sentence.
    11·1 answer
  • what role did basketball player in Jonathan Guisbert's love of sneakers? Support your answer with text evidence​
    13·1 answer
  • How is it possible that Danforth is so deluded in Act 3? Explain why he cannot see the truth. To the audience, it all seems so s
    11·1 answer
  • A prompt—executive Bird is the Jay
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!