Questions
Write a program in C to grade an n-question multiple-choice exam (for n between 5 and...

Write a program in C to grade an n-question multiple-choice exam (for n between 5 and 20) and provide feedback about the most frequently missed questions. Your program will use a function scan_exam_data to scan and store the exam data in an appropriate data structurer. Use file redirection to input data – do not use fopen() in your code. The first line of input contains the number of students. Second line is number of questions on the exam followed by a space and then an n-character string of the correct answers. Each of the lines that follow contain an integer student ID followed by a space and then the student answers.


Sample Input

3

5 dbbac

111 dabac

102 dcbdc

251 dbbac


Your program then uses a function analyze_data to calculate each student’s score as a percentage and the number of each missed questions in the exam. A function print_data will be called to produce an output, containing the answer key, each student’s ID, each student’s score as a percentage, and information about how many students missed each question.


Sample Output

Exam Report

Students 3

Question 1 2 3 4 5

Answer d b b a c

ID Score(%)

111 80

102 60

251 100

Question 1 2 3 4 5

Missed by 0 2 0 1 0


Error checking
You will have to perform some error checks while the program is being running. However, these error checks will not cause the program to terminate – except if you have a corrupted file. Your program should print error messages when appropriate. Here is a list that need to be checked: Illegal inputs like the number of questions must be between 5-20 and key answers must be lower-case letters.

In: Computer Science

The National Association of Insurance Commissioners is involved in the regulation of insurance through which of...

The National Association of Insurance Commissioners is involved in the regulation of insurance through which of the following: I. Direct involvement through the development of specific regulations for all states to follow II. The regulation of the insurance commissioners of all states III. Indirectly, by the exchange of information and preparation of recommendations IV. Assuring that the insurance of all states are somewhat uniform V. Accrediting state insurance regulatory offices a.) I, II and V only b.) I and IV only c.) III and V only d.) IV only e.) II, III, and IV only

In: Accounting

‏The speed of a 11 KW, 150 V, 1300 rev/min separately excited DC motor is controlled...

‏The speed of a 11 KW, 150 V, 1300 rev/min separately excited DC motor is controlled by a
‏single-phase fully-controlled thyristor converter. The rated motor current is 25 A, and the
‏armature resistance is Ra = 0.5 Ohm. The ac supply is 160 V. The motor voltage constant KE =
‏0.182 V/rev/min. Assume that sufficient inductance is present in the armature circuit to make
‏the armature current continuous and ripple free.
‏For a firing angle of alpha = 20 degree and rated motor current, calculate:
‏(a) The motor torque
‏(b) The supply power factor

In: Electrical Engineering

Given the following program below answer the following questions. 1.Draw a program flow graph for the...

Given the following program below answer the following questions.

1.Draw a program flow graph for the binsearch() function
2. Find the Define and Usage node, du-paths and dc-paths for all the variables

int binsearch(int x,int v[],int n)
{
    int low,high,mid;

    low=0;
    high=n-1;

    while(low<high)
    {
        mid = ( low + high ) / 2;

        if( x < v[mid])
            high  = mid - 1;
        else if ( x > v[mid])
            low = mid + 1;
        else
            return mid;
    }
    return -1;
}

In: Computer Science

A certain practical current source provides 0.1890625 W to a 90 ? load. That same practical...

A certain practical current source provides 0.1890625 W to a 90 ? load. That same practical current source provides 0.1987425 W to an 730 ? load. If the same practical current source had a resistance RL is connected to it, creating a voltage across RL of vL and a current through RLof iL. Find the values of RL, vL, and iL if
(a) vL×iLvL×iL is maximum
(b) vL is a maximum
(c) iL is a maximum.

(a) RL =  ? , vL =  V , iL =  A

(b) RL = ? , vL =  V , iL =  A

(c) RL =  ? , vL =  V , iL =  A

In: Electrical Engineering

The velocity of a particle traveling in a linear path is known to be:   v =...

The velocity of a particle traveling in a linear path is known to be:   v = ( s ^ 2 )/ 2000 + ( s ^ 4 )/ 2100 where v and s are [m/s] and [m], respectively. Use Riemann sum to determine the time in seconds for the particle to travel from s = 2 m to s = 3m. Use a minimum of ten (10) intervals. Show all work in this worksheet.

The technique spoken of in the question is Riemann Sum.

Also v=s^m/A + sf^n/B where s is 2, sf is 3, m is 2, n is 4, A is 2000, B is 2100

In: Mechanical Engineering

An incompressible liquid flows through a straight horizontal pipe. Friction of the fluid within the pipe...

An incompressible liquid flows through a straight horizontal pipe. Friction of the fluid within the pipe causes a small amount of heat to be transferred from the fluid; to compensate, flow work must be done on the fluid to move it through the system (so W(dot)fl is greater than zero.

a) How are V(dot)in and V(dot)out related, where V(dot) is the volumetric flow rate of the liquid? (Remember, fluid is incompressible)

b) How must the pressures of Pin and Pout be related?

Any help is appreciated, I don't understand this at all.

In: Other

A 130.0 mL sample of 0.070 M Ca 2 + is titrated with 0.070 M EDTA...

A 130.0 mL sample of 0.070 M Ca 2 + is titrated with 0.070 M EDTA at pH 9.00. The value of log K f for the Ca 2 + − EDTA complex is 10.65 and the fraction of free EDTA in the Y 4 − form, α Y 4 − , is 0.041 at pH 9.00. What is K ′ f , the conditional formation constant, for Ca 2 + at pH 9.00?

What is the equivalence point volume, Ve, in milliliters?

Calculate the concentration of Ca2+ at V=(1/2)Ve.

Calculate the concentration of Ca2+ at V=Ve.

Calculate the concentration of Ca2+ at V=1.1Ve.

In: Chemistry

Calculate the mass percent (m/m) of a solution prepared by dissolving 49.94 gg of NaClNaCl in...

Calculate the mass percent (m/m) of a solution prepared by dissolving 49.94 gg of NaClNaCl in 173.6 gg of H2OH2O.

Express your answer to four significant figures.

Vinegar is a solution of acetic acid in water. If a 125 mLmL bottle of distilled vinegar contains 27.6 mLmL of acetic acid, what is the volume percent (v/v) of the solution?

Express your answer to three significant figures.

Calculate the mass/volume percent (m/v) of 20.5 gg NaClNaCl in 60.5 mLmL of solution.

Express your answer to three significant figures.

In: Chemistry

1) There is a continuous function from [1, 4] to R that is not uniformly continuous....

1) There is a continuous function from [1, 4] to R that is not uniformly continuous. True or False and justify your answer.

2) Suppose f : D : →R be a function that satisfies the following condition: There exists a real number C ≥ 0 such that |f(u) − f(v)| ≤ C|u − v| for all u, v ∈ D. Prove that f is uniformly continuous on D

Definition of uniformly continuous: A function f: D→R is called uniformly continuous iff for all sequences {an} and {bn} in D if (an) - (bn)→ 0 then f(an) - f(bn)→ 0

In: Advanced Math