Work for the acme programming firm


Reading and Writing Files
As part of your work for the ACME programming firm, you have been asked to write two pieces of software for giving and creating a math quiz. The requirements for each of these pieces of software are given below. 
The software that gives a math quiz will do the following.
1. Read problems from a file named "math.dat". 
a. There will be one problem per line in this file. 
b. You should handle addition, subtraction, multiplication, and division
c. Problems on each line will be of the form "number1 mathOp number2" where number1 and number 2 are some integer and mathOp is +, -, /, *
2. Present each question one by one to the person taking the exam
a. You should make sure to inform them if they got the answer correct or incorrect
b. You should also provide the correct answer.
3. Grade the exam based on questions they correctly answered. 
a. Inform them how many they answered correctly out of the total.
b. Give the person a percentage of how many they answered correctly.

The software that creates the math quiz will just create a file named math.dat.
1. The program will prompt the end user to for each problem they want to enter.
2. The quiz creator should be able to do make the following problem types: addition, subtraction, multiplication, and division
3. The program will ensure that the output file is of the form "number1 mathOp number2" where number1 and number 2 are some integer and mathOp is +, -, /, *
4. The output file should be usable in the software that gives the math quiz. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Work for the acme programming firm
Reference No:- TGS096633

Expected delivery within 24 Hours