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, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
In what way is your social media footprint related to your digital id
Answers: 1
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
Mathematics, 07.05.2021 21:20
question
History, 07.05.2021 21:20
question
Mathematics, 07.05.2021 21:20
question
Mathematics, 07.05.2021 21:20