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
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
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, 20.11.2021 03:50
Questions on the website: 13722367