Classes and Dynamic Arrays – Nursing Writings
Classes and Dynamic Arrays – Nursing Writings
Redo Programming Exercise 6 of Chapter 9 using [classes and dynamic arrays]
The history teacher at your school needs help in grading a True/False test.The students’ IDs and test answers are stored in a file. The first entry in thefile contains answers to the test in the form:TFFTFFTTTTFFTFTFTFTT
Every other entry in the file is the student ID, followed by a blank, followedby the student’s responses. For example, the entry:ABC54301 TFTFTFTT TFTFTFFTTFT
indicates that the student ID is ABC54301 and the answer to question 1 isTrue, the answer to question 2 is False, and so on. This student did notanswer question 9. The exam has 20 questions, and the class has more than150 students. Each correct answer is awarded two points, each wrong answergets one point deducted, and no answer gets zero points. Write a programthat processes the test data. The output should be the student’s ID, followedby 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.
Like this:Like Loading…
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


