subject

Write a C++ program that reads sentences, one by one, from a file “sentences. txt”. Maximum length of a sentence can be 250. Search for “new” word in each sentence. If found, create a file with the name “new. txt” and stores that sentence in that created file. Note: For searching new word you will create a function in which you will pass sentence and function will return true and false.

Example
sentences. txt
I am going to school.
They are buying a new car.
New year 2019 eve was great.
I got to go.
He is leaving his dog.
She is running after the bus.
Artificial intelligence and 5G has created many jobs.
After executing the program,
new. txt
They are buying a new car.
New year 2019 eve was great.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
You know the right answer?
Write a C++ program that reads sentences, one by one, from a file “sentences. txt”. Maximum length o...
Questions
question
Biology, 04.02.2020 11:01
question
History, 04.02.2020 11:01
Questions on the website: 13722360