Question

In: Computer Science

In addition to calculating and outputting each students quiz grade to calculate the average score for...

In addition to calculating and outputting each students quiz grade to calculate the average score for each quiz and the average of all the student quiz averages. Output the results at the bottom of each quiz column and the Quiz Average column (Row 22).

Hint: Be careful when setting up your expression to calculate the average of all the quiz averages, this may require a slightly different expression then the others (not due to math).

Student Quiz 1 Quiz 2 Quiz 3 Quiz 4 Quiz 5 Quiz Average
Jimmy 78 82 83 66 79
Elsa 87 72 83 70 100
Robert 95 96 100 81 74
Dave 62 99 94 65 69
Jenna 70 68 87 63 88
Liza 100 88 84 60 66
Pete 91 87 72 70 65
Fred 75 86 82 61 81
Wilma 96 85 92 64 67
Betty 60 86 68 90 72
Barnie 84 72 97 64 98
Jonas 80 85 89 96 78
Hank 77 62 78 61 78
Archie 84 98 70 72 97
Veronica 74 83 96 88 75
Marge 60 84 99 82 90
Homer 97 90 84 69 81
Bart 82 100 65 85 98
Lisa 95 93 73 90 62
Reginald 64 77 62 85 100

Solutions

Expert Solution

Syntax for creating table

create table Quiz(Student varchar(30),Quiz1 int, Quiz2 int, Quiz3 int,Quiz4 int, Quiz5 int, Quiz_Average float);

Syntax for inserting data

insert into Quiz values('Elsa',87,72,83,70,100,NULL), ('Robert',95,96,100,81,74,NULL), ('Dave',62,99,94,65,69,NULL), ('Jenna',70,68,87,63,88,NULL), ('Liza',100,88,84,60,66,NULL), ('Pete',91,87,72,70,65,NULL), ('Fred',75,86,82,61,81,NULL), ('Wilma',96,85,92,64,67,NULL), ('Betty',60,86,82,61,81,NULL), ('Barnie',84,72,97,64,67,NULL), ('Jonas',80,85,89,96,78,NULL), ('Hank',77,62,78,61,78,NULL), ('Archie',84,98,70,72,97,NULL), ('Veronica',74,83,96,88,75,NULL), ('Marge',60,84,99,82,90,NULL), ('Homer',97,90,84,69,81,NULL), ('Bart',82,100,65,85,98,NULL), ('Lisa',95,93,73,90,62,NULL), ('Reginald',64,77,62,85,100,NULL), ('Average_Score',NULL,NULL,NULL,NULL,NULL,NULL);

Syntax for Finding and updating the Quiz Average

update Quiz set Quiz_Average = (Quiz1+Quiz2+Quiz3+Quiz4+Quiz5)/5 where Student = 'Elsa';

here at place of Student column you have to change the name of student so you can able to find out the auiz average of everyone and update the value of it.

Expression for finding the Quiz Average

Quiz_Average = (Quiz1+Quiz2+Quiz3+Quiz4+Quiz5)/5

Syntax for finding and updating the Average Score

update Quiz set Quiz1 = ( select sum(Quiz1) from Quiz)/20 where Student = 'Average_Score';

here you have to change the Quiz column name so you can update the value of Average_Score

Expression for finding the Average Score

Average score = (select sum(Quiz1) from Quiz)/20

Here is the Output


Related Solutions

In a class of 25 students the average grade on a quiz is 16.85, with a...
In a class of 25 students the average grade on a quiz is 16.85, with a sample standard deviation of 4.75. The grades are known to be normally distributed. a. Determine the standard error of the mean. b. Determine the 98% confidence interval for the class grades. c. If you wanted a narrower interval, would you increase or decrease the confidence level?
There are 25 students in a class. The lowest quiz score is a 5. The average...
There are 25 students in a class. The lowest quiz score is a 5. The average quiz score is 14, median is 15, and SD is 3. If the student who got a 5 has their grade changed to a 10, what happens to the average, the median, and the SD, respectively? Answer in detail.
Last semester, the students in my Finite Math class had an average quiz score of 83...
Last semester, the students in my Finite Math class had an average quiz score of 83 with a standard deviation of 2. Assume that the scores are approximated by a normal distribution. a) What percent of students scored higher than an 86 on the quiz? b) What percent of students scored less than a 79 on the quiz? c) What percent of students scored between a 79 and an 86? d) What happens when you try to find the percent...
A STAT 200 instructor believes that the average quiz score is a good predictor of final...
A STAT 200 instructor believes that the average quiz score is a good predictor of final exam score. A random sample of 10 students produced the following data where x is the average quiz score and y is the final exam score. x- 80, 95, 50, 60, 100, 55, 85, 70, 75, 85 y - 70, 96, 50, 63, 96, 60, 83, 60, 77, 87 (a) Find an equation of the least squares regression line. Round the slope and y-intercept...
For this assignment, write a program that will calculate the quiz average for a student in...
For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be written in two versions. The first version of the program will read a set of quiz...
For this assignment, write a program that will calculate the quiz average for a student in...
For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be written in two versions. The first version of the program will read a set of quiz...
The Dean of Students at UTC has said that the average grade of UTC students is...
The Dean of Students at UTC has said that the average grade of UTC students is higher than that of the students at GSU. Random samples of grades from the two schools are selected, and the results are shown below. UTC 91) GSU (2) Sample Size 14 12 Sample Mean 2.85 2.61 Sample Standard Deviation 0.40 0.35 Sample Mode 2.5 3.0 At a 0.1 level of significance, conduct a test of hypothesis to assist the Dean evaluate his hypothesis. If...
Overview For this assignment, write a program that will calculate the quiz average for a student...
Overview For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be written in two versions. The first version of the program will read a set of...
Overview For this assignment, write a program that will calculate the quiz average for a student...
Overview For this assignment, write a program that will calculate the quiz average for a student in the CSCI course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be written in two versions. The first version of the program will read a set of quiz...
Overview For this assignment, write a program that will calculate the quiz average for a student...
Overview For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be written in two versions. The first version of the program will read a set of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT