Question: no need to do a txt file only write the code to open the file and answer it correctly that will be enough I want

no need to do a txt file only write the code to open the file and answer it correctly that will be enough I want to see how to solve it
Question ? Write a program that reads a filename as a string (filename), then reads input from this file UNTIL THE END OF THE FILE where there are lies representing arithmetical operations as belor: FirstNumber operation SecondNumber FirstNumber and SecondNumber will ALWAYS be an integer value and operation will ALWAYS be either Or 98-4 After reading all the lines, the program will calculate the result of each operation and print it out as integer values to the console: eg (for the file input given above): NOTES: - Use the files provided with the question. - The input files will ALWAYS be given in the correct format. You do NOT need to check this. Input Labe_Inpool.Ex Labs Inputs.txe Labs_Input-out 8 65 162 20 Output 10 20 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
