[solved]-Question 4 Write Program Reads Contents File Line Line Assume Line Won T Exceed 80 Charact Q39078446
Using C++ pleaseinclude <iostream>using namespace std;
Question 4: Write a program that reads the contents of a file line by line (assume that a line won’t exceed 80 characters), then to create a file that contains a reversed copy of each line. Input file: Hello World from UAE I like CMP120 course I also do like Math courses Physics. 🙂 🙂 is my best Output file: EAU morf dlrow ollel escues @21PMC ekil I sesruos hta ekil od osla I tseb ym si…:): -scisyhp Question 5: Write a program that does the following: Reads two integer values (numl and num2) and a character symbol… +. /, or %) from inputs.txt. Calculates results based on the character read and writes these results to the output file result.txt as demonstrated in the following example. Sample output: result – Notepad D I QX Ble Edit Format Yon belo Num1 Symbol Num2 Result 35 + 6 – 8 = 8 % 3 = Show transcribed image text Question 4: Write a program that reads the contents of a file line by line (assume that a line won’t exceed 80 characters), then to create a file that contains a reversed copy of each line. Input file: Hello World from UAE I like CMP120 course I also do like Math courses Physics. 🙂 🙂 is my best Output file: EAU morf dlrow ollel escues @21PMC ekil I sesruos hta ekil od osla I tseb ym si…:): -scisyhp Question 5: Write a program that does the following: Reads two integer values (numl and num2) and a character symbol… +. /, or %) from inputs.txt. Calculates results based on the character read and writes these results to the output file result.txt as demonstrated in the following example. Sample output: result – Notepad D I QX Ble Edit Format Yon belo Num1 Symbol Num2 Result 35 + 6 – 8 = 8 % 3 =
Expert Answer
Answer to Question 4: Write a program that reads the contents of a file line by line (assume that a line won’t exceed 80 character… . . .
OR

