Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Computer Science Programming Code

Computer Science Programming Code

Computer Science Programming Code

Description

The history teacher at your school needs help in grading a True/False test. The students Ds and test answers are stored in a file. The first entry in the file contains answers to the test in the form: TFFTFFTTTTFFTFTFTFTT The remaining entries in the file (historyStudentTestAnswers.dat) is the student ID, followed by a space, followed by the studentà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 exam has 20 questions, and the class has 10 students enrolled. 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. The output should be the studentàID, followed by the answers, followed by the test score, followed by the test grade to a file called historyStudentTestGraded.dat. Assume the following grade scale used in this class (refer to the COSC 113.556 course syllabus).

Your program must use the three (3) functions listed below. Be sure to use the function implementation method established in class.

Functions the program must include:

  1. printStudentData: This function takes an output file reference, a 1-D string array, a 2-D character array, 1-D array float, and the integer for the number of rows. The function should display the student test information as follows: Student ID: ABC54301 Test answers: TFTFTFTT TFTFTFFTTFT === Score: 10 out of 40 === Grade: F
  2. initStudentData: The function takes as an input file reference, a 1-D string array, a 1-D character array (hint: the answer key), a 2-D character array, and the integer for the number of rows. The function should initialize the contents of each array structure accordingly. The first line of in the file corresponds to the answer key. The next set of input lines are laid out as follows: the student ID and their corresponding test answers.
  3. calculateTestScore: The function takes a 1-D character (hint: the answer key), 1-D array of type float, and a 2-D character array. The function calculates each students test score by comparing each answer entered by the student against the answer key. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points.
Explanation & Answer:

program

User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20