Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I had already posted this question once but the expert answer was wrong so please work on this question correctly thanks. C++ Write a program

I had already posted this question once but the expert answer was wrong so please work on this question correctly thanks. C++

Write a program called Grader_LastNameFirstName.cpp that processes the True/False data from a file called testinformation.txt.

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, followed by the students responses. For example, the entry:

ABC54301 TFTFTFTT TFTFTFFTTFT

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. The e x a m has 20 questions, and the class could have up to 150 students. This class only had 4 students. Each student has a different student ID and no student ID can appear more than one time. Hint Hint If it appears more than once; only takes the first entry.

Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points.

The output should be the students ID, followed by the answers, followed by the test score, followed by the test grade as show below:image text in transcribed

Assume the following grade scale:

90%100%, A;

80%89.99%, B;

70%79.99%, C;

60%69.99%, D;

0%59.99%, F.

THE MOST IMPORTANT THING PLEASE: !!!!!!!!!!!!!!!!!!

Write the output to the screen and output the results for the class to a text file called Grades_lastnamefirstname.txt. Also output each of the students results in a separate file with their student ID and your lastnameFirstname.txt For example, for the above output, your program would have 5 output files.

Grades_lastnamefirstname.txt (contains everyone grades) as Grades_RogersGregory.txt

ABC54102_lastnamefirstname.txt as ABC54102_RogersGregory.txt

DEF56278_lastnamefirstname.txt as DEF56278_RogersGregory.txt

ABC42366_lastnamefirstname.txt as ABC42366_RogersGregory.txt

ABC42586_lastnamefirstname.txt as ABC42586_RogersGregory.txt

Processing Data Key: TTFTFTTTFTFTFFTTFTTF ABC54102 T FTFTFTTTFTTFTTF TF 27 D DEF56278 TTFTFTTTFTFTFFTTFTTF 40 A ABC42366 TTFTFTTTFTFTFFTTF ABC42586 TTTTFTTT TFTFFFTF 34 B 26 D

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

What are the role of supervisors ?

Answered: 1 week ago