Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

In this assignment, you will redo Assignment 1 using functions and also extend its functionality. Like Assignment 1, you will

develop a Console Application that grades a multiple choice test with 10 questions taken by 8 students.

The applications finds each student's letter grade based on that test, and then displays:

(i) a table listing names, scores and grade for all students,

(ii) average, standard deviation, and median of the test scores,

(iii) a histogram showing the number of students who got A, B, C, D, or F, etc.

Suppose the student's names, their answers to the questions, the answer key and the score for each question are as given

below.

Student's Answers to the Questions

Jack

A B A

C C D E E A D

John

D B A

B C A E E A D

Jill

E D D

A C B E E A D

Mary

C B A

E D C E E A D

Peter

A B D

C C D E E A D

Bob

B B E

C C D E E A D

Nancy

B B A

C C D E E A D

Pat

E B E

C C D E E A D

Key

D B D

C C D A E A D

Score

2 2

5

3 3 4

4

4

6 7

1. The Main() method should create one two dimensional array to store the student's answer and three different one

dimensional arrays to store the student names, the answer key and the scores for each question, and initialize them to the

values given above.

You may create other arrays if you like, but only if necessary.

DO NOT declare any array at class-level. Every array you declare should be declared inside a function (Main or other).

Note that we may change the student responses, the answer key and/or the scores for the questions when we test your

application. So, write your code in such a way that it will work for any values.

2. The Main() method should then call a method called ComputeGrades().

The ComputeGrades method must

(1) take 3 arrays as input: one containing the student responses, the second containing the answer key, and the third

containing the scores for the questions,

(2) compute the total scores and grades that the students earn, and

(3) "return" two arrays: one containing the total score for each student and the other containing the grade the student earns.

The grading scheme to be used is: A: [90%,100%], B: [80%, 90%), C: [70%, 80%), D: [60%, 70%), F: <60%. Note that

B:[80, 90) means a student gets a B if his score is >= 80%, but strictly less than 90%.

3. The Main() method should then call a method called ComputeStatistics() that takes the students' scores array as input and

computes and "returns" the average, the standard deviation, and the median of the student scores.

4. The Main() method should then call a method called DisplayResults() that takes appropriate inputs and display the results

as shown in the sample output.

To do this, the DisplayResults() method should in turn call a method called DrawHistogram() which takes appropriate inputs

and displays the histogram as shown in the sample output.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91599953
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

The stock of company tyk pays dividends annually with next

The stock of company TYK pays dividends annually, with next year's dividend expected to be $1 a share. For the next seven years, dividends are expected to grow at a rate of 6% a year. Thereafter, dividends are expected t ...

To what extent does the client hold a responsibility for

To what extent does the client hold a responsibility for the success of their financial plan?

What is the annual coupon rate of a 7-year corporate bond

What is the annual coupon rate of a 7-year corporate bond given that its current price is $930, par = 1,000, semi-annual coupon, YTM=10%?

An annual survey of first-year college students ask 273000

An annual survey of first-year college students ask 273,000 students about their attitudes on a variety of subjects. According to a recent survey, 57% of first-year students believe that abortion should be legal. Use 0.0 ...

Find the modified internal rate of return mirr the annual

Find the modified internal rate of return (MIRR) The annual rate is 8.24%. Initial outlay is $356,800. Year 1: $163,100 Year 2: $173,100 Year 3: $181,300 Year 4: $175,700 Year 5: $161,400

A community hospital wants to estimate the body mass index

A community hospital wants to estimate the body mass index (BMI) of its local population. To estimate the BMI with an error of at most 0.5 at a 95% confidence level, what sample size should they use? The standard deviati ...

A survey found that people keep their televisions an

A survey found that people keep their televisions an average of 5.8 years. The standard deviation is 0.76 year. If a person decides to buy a new TV, find the probability that he or she owned the old one for the given amo ...

Assume that 8 of people have ab blood a hospital blood bank

Assume that 8% of people have AB blood. A hospital blood bank needs ABblood so the blood bank begins checking potential donors. Use this Excel file geometric probabilities (enable the macro after opening the file) or thi ...

Express courier service has found that the delivery time

Express Courier Service has found that the delivery time for packages is normally distributed with mean 14 hours and standard deviation 2 hours. a. What percent of the packages will be delivered in less than 18 hours? b. ...

Consider the following random sample ofnbspdata8 6 -6 0 -9

Consider the following random sample of data: 8, 6, -6, 0, -9, 4, -1, 7, 6, 84 a) What is the standard deviation of the sample data? Round your response to at least 3 decimal places. b) If the outlier is removed, what is ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As