You have been hired by a school district

Assignment Help Programming Languages
Reference no: EM13168570

Problem: You have been hired by a school district to write a program that will grade multiple choice exams and provide

a report listing the grade (numeric and letter) for each student, the problems missed for each student (including the

student's answer and correct answer) as well as a summary for the entire class giving the mean, median and mode of

the exams. All arrays used must be created dynamically and only pointer notation may be used to interact with the

arrays.

 

Input: The correct answers for the exam will be in a file named answers.txt. The first line of the file will be the number

of questions to grade (maximum 100). Each subsequent line will contain the answer to sequential questions on the

exam. You do not have to validate the exam answers file. It will contain exactly as many answers as indicated on the

first line of the file, and all answers in the file will be a letter A-E.

The student exams will be in a file named exams.txt. Each line of the file will contain data for a unique student. Each

line of the file will begin with a student ID (a 10-digit number - can be treated as a string) followed by the student's

answers for the exam. Each answer will be separated by a space and there will be exactly as many answers as there are

questions listed in answers.txt.

 

Output: All numeric values should be rounded to 2 decimal places. Letter grades follow the traditional grading system

(no plus-minus, A=90 - 100, B=80-89.99, etc.). Numerical grades are calculated by dividing the number of correct

answers by the total number of answers and converting to a percentage.

 

A file named exam_report.txt should be created to hold the output from grading the exams. For each student, the

following information should be written to the file (each bullet represents a separate line):

? Student ID

? <Numeric grade> <space> <letter grade>

? Exam questions missed (numeric - separated by spaces)

? Incorrect answers given by student (line up each answer with the ones digit of the question number in the

previous line)

? Correct answer (line up each answer with the ones digit of the question number in the previous line)

? Blank line

After each student report has been generated to the file, create a summary for the exam stating the mean, median and

mode of the exams. If there is more than one mode, then list all modes separated by a comma and a space (e.g. 65, 70,

75). Functions: Your program should contain functions to do each main task. There should be minimal code in the main

function other than function calls. Do not chain your functions together (one function calls the next function which calls

the next function, etc.)

Reference no: EM13168570

Questions Cloud

What is technology s-curve : What is technology S-curve? Give an example that explains how to use S-curves to prescribe development of new component technologies.
Develop your own matlab function for the fixed-point method : Develop your own Matlab function for the Fixed-point method. Use the approximate relative error as your stopping criterion. The first line of your function should be function [root,froot,ea,iter] = fixedpoint(func,xr,es,maxit)
What will be the theoretical yield of water in grams : If 3.50 g of H2S are used in the above reaction, what will be the theoretical yield of water in grams?
Is it realistic to disregard the presence of no : If the combustion gases consist of CO2, H2O, CO, O2, and N2 that exit at 1200 K and 2 atm, determine (a) the equilibrium composition of the product gases and (b) the rate of heat transfer from the combustion chamber. Is it realistic to disregard t..
You have been hired by a school district : You have been hired by a school district to write a program that will grade multiple choice exams and providea report listing the grade (numeric and letter) for each student, the problems missed for each student.
Write a program that find the average time spent programming : Write a program that finds the average time spent programming by a student each day over a 3 day period.
What main type of intermolecular attraction : What main type of intermolecular attraction would you expect for cl2c0?
Internet access providers : Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?
Allow customers the option of five t-shirt sizes : Allow customers the option of five T-shirt sizes and styles: XXL Short Sleeve, XL Short Sleeve, L Short Sleeve, M Short Sleeve, S Short Sleeve. Assume that each product has a unique price that is displayed when the user cliks a Buy Now button.

Reviews

Write a Review

Programming Languages Questions & Answers

  Bubble sort or selection sort to sort list before search

Write down program to test method seq0rderedSearch. Use either the method bubbleSort or selectionSort to sort the list before the search.

  Develope a tutoring software for an elementary school

You are the project manger for a company that is planning to develope a tutoring software for an elementary school that will follow their curriculum create a work breadown structure.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

  Write program to calculate distance and time hurricane take

Write C++ program that will calculate the distance and time it will take (days/hours) for hurricane to reach Ft. Lauderdale if: Hurricane is at coordinates 16 N, 64 W, just SE of South Fla. off in Atlantic, with a speed of 20 mph.

  Program to create new departments to sustem

An ability to add new departments to system. The program should permit you to create new departments. Each department has a name, and a location (e.g. "Sydney" or "Tokyo").

  Design bank account class with data members-member functions

Design the Bank Account class with suitable data members and member functions - think of attributes or features of a bank account - think of kind of data (and actions) you require to open account.

  Matrix multiplication code with mpi

Matrix multiplication code with MPI. At the beginning of each of the programs, write names of group members in the comment line.

  Write program to prompt user to enter a hex digit character

Write a program which will prompt user to enter ahex digit character ("0" ..."9" or "A" .."F") ,display it on next line in decimal, and ask user if he or she wants to do it again.

  C program to accept three numbers inputs by user

Write down C program to accept three numbers input by a user, and outputs a table of temperatures in Fahrenheit, Celsius, and Kelvin.

  Customer ordering mobile app of a pizza house

Application should be adaptive enough to render on multiple devices with various form factors. To make customer experience best advanced capabilities like geo-location, augmented reality and mashups should be used.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd