Computer Science, asked by hamzakhan12777, 4 months ago

Write a C++ program that will read data from a file. Each line of this input file contains different
mathematical expressions. Calculate the expressions and save the results into another file. Ask from
user the name of input file with full path, locate it in your computer, open it, read the data, save the
results in another file and close them.The English teacher at your University needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:
TFFTFFTTTTFFTFTFTFTT
Every other entry in the file is the student ID, followed by a blank space, followed by the student’s
responses. i.e.

ABC54301 TFTFTFTT TFTFTFFTTFT
DEF54301 TTTTTTTTTFTFTFFFFFT
GHI54301 FFFFFFFFTTTTTTTTTTTT
JKL54301 FTFTFTFTFFTFTFTFTFTF
.
.
.
For example, the first entry indicates that the student ID is ABC54301 and the answer to question 1 is true, the answer to question 2 is False, and so on. This student did not answer question 9 that's why there is a blank space. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points.
Write a program that processes the test data. Show the output on console and write to the output file
also in the following format; the output should be the student’s ID, followed by the answers, followed by the test score, followed by the test grade.
Assume the following grade scale:
90%–100%, A; 80%–89.99%, B; 70%–79.99%, C; 60%–69.99%, D; and 0%–59.99%, F.

Answers

Answered by vandanaamarmishra
0

Answer:

bhai ye kya hai q hai ki kyaa haiii?

Answered by MichSuchana91
3

Answer:

This is srly going to help u out of ur problem

Explanation:

BeBrainly, BeCoder

Bst of lk!

Attachments:
Similar questions