The possible responses are a b c or d a file has been

Assignment Help C/C++ Programming
Reference no: EM13372261

The possible responses are a, b, c, or d. A file has been created that contains the following:

1st line: The answer key consists of 20 lower case letters that represent the correct answers to the exam. There will be no blank spaces between the letters.

Example: abcdabcdabcdabcdabcd

2nd-last line: Each line will start with the first and last names of a student (names will be separated by at least one blank space). The names may be in a mixture of upper and lower case letters. The names will be followed by at least 1 blank space and then that student's responses to the test questions will be provided. There will not be any blank spaces between the responses, but they may be in a mixture of upper and lower case letters. An upper case letter should be considered correct if it matches the lower case equivalent in the key.

Example: biLL jOnEs aBcdAbCDabDcabDDABCD

NOTE: The key will consist of exactly 20 characters. However, the student responses may consist of more or less than 20 characters. Assume that the first 20 characters in a student response correspond to the 20 test questions.

In other words if a student only provides 15 answers, then the last 5 questions are wrong. If a student provides 25 answers, the last 5 responses should be ignored.

Design a C++ program that will interactively prompt for and read the name of the input file interactively prompt for and read the name of a file to write the output of the program to write the following to the specified output file your name, section #, assignment # a report that displays the names of the students along with their test scores (see formatting specifications below) the number of students who took the test with a label (maximum class size is 50) the class average displayed with 3 digits to the right of the decimal and a label the standard deviation of the test scores with 3 digits to the right of the decimal and a label display the highest score and list the names of the students who received it Grading a Test Each of the questions on the test is worth 5 points.

The test score is the # of correct responses multiplied by the point value of a question. Computation of Average and Standard Deviation If n = # of values, and datai = the ith value, Formatting Requirements for Output Arrange information in the grade report into 2 columns with headings. The first columns should be labeled "NAME" and the second column "SCORE". Reformat names so that the first letter of each name is capitalized and the remaining letters are lower case. Left justify the names (maximum length of full name is 20 characters, 10 per name). Right justify the scores and display with no decimals (maximum score is 100) Leave a blank line before and after the statistics (student count, average and standard deviation).

When displaying the list of students with the high score, each name should be on a separate line. Input File Assumptions/Definitions maximum number of students will be 50 the names and responses for each student will be on a separate line of the file each line of the file will be terminated by a linefeed the input file will exist and not be empty.

REQUIREMENTS The program must make use of functions to modularize the code. No global variables or goto statements can be used in the program. The input file can only be opened once for reading. Arrays MUST be used to store the names of students and scores on the exams.

Records and/or classes CANNOT BE USED to store the names and scores.

Reference no: EM13372261

Questions Cloud

A student is trying to get a better catalyst for the h2o : a student is trying to get a better catalyst for the h2o gas shift reaction . the feed to the reactornbsp 3 mol carbon
Compute the quantity of workw that is associated with a 95 : compute the quantity of workw that is associated with a 9.5 litre expansion of a gasnbsp againstnbsp the givennbsp
Pervaporation is the process that is used to make ethanol : pervaporation is the process that is used to make ethanol in nearly pure form from a feed with ninety percent c2h5oh
Create a one-page professional-looking personal website : create a one-page professional-looking personal website using only html and css. you may build your site on any topic
The possible responses are a b c or d a file has been : the possible responses are a b c or d. a file has been created that contains the following1st line the answer key
Niagra group ltd ngl designs develops manufactures and : niagra group ltd. ngl designs develops manufactures and sells photonics-based solutions including lasers laser systems
Questionuse the crank-nicolson procedure to solve the : questionuse the crank-nicolson procedure to solve the following partial differential equationnbspfor 0 le x le 1 taken
Frances workman had been president of willard university : frances workman had been president of willard university for less than two years but during that time she had become
The containing data for patients who screened on a tobacco : the containing data for patients who screened on a tobacco screening day held at a local hospital has been uploaded to

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

  Emulates the behavior of a bus

Write a program that emulates the behavior of a bus. The bus must have a schedule ( a finite number of times for it to stop) and a certain capacity (number of passengers). In this program the bus has two states: stopped and going.

  Write a program that finds the equivalent series

Write a program that finds the equivalent series and parallel resistance for a collection of resistor values. Your program should scan first the number of resistors and then the resistor values. Then compute the equivalent series resistance for all r..

  Where s is any string

Write a function detab(s, stop), where s is any string, and stop is a positive integer called tabstop size. This function should return a string which is like s.

  Define a class named creditcardpayment

Create a main method that creates at least two CashPayment and two CreditCardPayment objects with different values and calls payment Details for each.

  Aimsthe main purpose of the assignment is to let you

aimsthe main purpose of the assignment is to let you practice the following programming techniques read data from

  Create class has three pieces of information as data members

Create a class called Date in C++ that includes three pieces of information as data members: month (type int), day (type int) and yaer (type int).

  Write a program to find the average value

Write a program to find the average value, the largest value, and the smallest value of a set of numbers supplied as input from the keyboard. The number of values in the data set must be in the range 0 to 20, inclusive.

  Time conversion

Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time.

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

  State a c program that opens the file

Write a C program that opens the file and firstly stores all the values in an appropriately declared two-dimensional array of integers. It then should analyse this array to find (from the 40 input values) the total number of coursework marks in the..

  Dynamically allocates an array large enough

Write a program that dynamically allocates an array large enough to hold a number of test score. The size of the array should be input by the user

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