Question: *SOLUTION REQUIRED IN PYTHON* You need to write a separate function for each task. Task 1 File I/O Your little sister needed help in multiplication

 *SOLUTION REQUIRED IN PYTHON* You need to write a separate function

*SOLUTION REQUIRED IN PYTHON*

You need to write a separate function for each task. Task 1 File I/O Your little sister needed help in multiplication and you thought of helping her. You gave a set of questions for her to solve to practice. All the questions and answers were written inside a file named input.txt. You need to read input.txt" which will have several test cases. Each test case has three integers: first two integers are the numbers which needed to be multiplied and third number is the answer that your sister calculated. For each test case, you need to output to another file names, "output.txt" a line containing "right" if the answer was correct or a"wrong" if the answer was wrong. In the end, you also need to output the total number of questions that were correct and the total number of questions. You need to make a file named "input.txt" by yourself. In case a file is not found, your program should write the following in in "output.txt": "No input file found" Sample Input (input.txt) 68 48 7 7 48 5 12 60 Output for Sample Input (output.txt) right wrong right Correct: 2/3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!