I am Jeremy P. I am a C++ Programming Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from Loughborough University, UK. I have been helping students with their homework for the past 8 years. I solve homework related to C++ Programming .
Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Programming Homework.
1. For any Homework related queries, Call us at : - +1 678 648 4277
You can mail us at :- info@cpphomeworkhelp.com or
reach us at :- https://www.cpphomeworkhelp.com/
2. 1. Create two textfiles FILE1.TXT and FILE2.TXT. Store the following content in these
two textfiles:
File 1:
Hello I C++
File 2:
World Love
2. Create another Textfile FILE3.TXT, which contains the text of FILE1 merged with
that of FILE2 in the following way:
Hello World I
Love C++
To do this, create 3 separate objects – 2 in input mode and one in output mode. You
will also have to use conditional statements to check for the ends of files.
3. Now add the following content to your existing textfile:
a) I Love 6.096 too!
b)Several more lines added by the user (inputting should continue as long as the user
wishes – ask the user after every line he/she inputs!)
Problem
cpphomeworkhelp.com
3. 3. Finally, count and print:
a)The number of occurrences of the letter ‘O’ in your file File 3.txt.
b)The number of occurrences of the word “Love” in your file File3.txt (You can use
the strcmp() function of file cstring here, or compare using string objects, with
which you can use the ==operator)
cpphomeworkhelp.com