Question

In: Computer Science

Using MATLAB A list of 30 test scores is: 31, 70, 92, 5, 47, 88, 73,...

Using MATLAB

A list of 30 test scores is: 31, 70, 92, 5, 47, 88, 73, 51, 76, 80, 90, 55, 23, 43, 98, 36, 87, 22, 61, 19, 69, 26, 82, 99, 71, 59, 49, 64

Write a computer program that determines how many grades are between 0 and 19, between 20 and 39, between 40 and 59, between 60 and 79, and between 80 and 100. The results are displayed in the following form:

Grades between 0 and 19, 2 students

Grades between 20 and 39, 4 students

Grades between 40 and 59, 6 students

and so on (Hint: use the command fprintf to display the results).

Solutions

Expert Solution

Ans

code:-

list=[31, 70, 92, 5, 47, 88, 73, 51, 76, 80, 90, 55, 23, 43, 98, 36, 87, 22, 61, 19, 69, 26, 82, 99, 71, 59, 49, 64];

c1=0;c2=0;c3=0;c4=0;c5=0;

%iterate and check conditions

for i=1:length(list)

if(list(i)<=19)

c1=c1+1;

elseif(list(i)>=20&list(i)<=39)

c2=c2+1;

elseif(list(i)>=40&list(i)<=59)

c3=c3+1;

elseif(list(i)>=60&list(i)<=79)

c4=c4+1;

elseif(list(i)>=80&list(i)<=100)

c5=c5+1;

end

end

%print result

fprintf('Grades between 0 and 19, %d students\n',c1);

fprintf('Grades between 20 and 39, %d students\n',c2);

fprintf('Grades between 40 and 59, %d students\n',c3);

fprintf('Grades between 60 and 79, %d students\n',c4);

fprintf('Grades between 80 and 100, %d students\n',c5);

If any doubts ask in the comments.


Related Solutions

Test scores on a recent statistics test are listed below. 80 79 92 75 88 35...
Test scores on a recent statistics test are listed below. 80 79 92 75 88 35 98 91 90 81 32 50 59 66 68 95 42 18 a) Find the mean and median of the data set. b) Find the standard deviation and the range c) Find the five number summary for the data. d) Construct a box plot for the data. e) Are there any outliers? Justify your answer. f) Describe the distribution of the data. g) Which...
Scores are 92, 68, 88, 96, 72, 88, 80, 64, 74, 92, 100, 84   What is...
Scores are 92, 68, 88, 96, 72, 88, 80, 64, 74, 92, 100, 84   What is the IQR? 19 19.5 20.5 20 6
Determine the 95% confidence interval for the following scores: 83, 92, 81, 87, 79, 93, 88,...
Determine the 95% confidence interval for the following scores: 83, 92, 81, 87, 79, 93, 88, 87, 83. Hint: You will need to determine the sample mean and standard deviation and then construct your confidence interval around these.
Exam 1 Scores 91, 83, 75, 85, 90, 80, 67, 82, 88, 87, 95, 91, 73,...
Exam 1 Scores 91, 83, 75, 85, 90, 80, 67, 82, 88, 87, 95, 91, 73, 80, 83, 92, 94, 68, 75, 91, 79, 95, 87, 76, 91, 85, 59, 70, 69, 78 Dummy: 0, 0 What are the Hypothesis Statement? What is Ho? What is Ha? What is the P-Value? What is the Claim? What is the Decision Rule? (Hint: Do you reject or fail to reject the null hypothesis?) What is the Level of Significance? (Hint: α) What...
Grade 50 70 47 75 82 79 79 88 81 45 90 81 Time Spent (Hrs)...
Grade 50 70 47 75 82 79 79 88 81 45 90 81 Time Spent (Hrs) 166 76 30 100 100 62 9 17 13 29 1 29 a. Create a scatterplot b. what is the correlation, slope and y-intercept? c. Using your regression equation make a prediction of the grade earned if a student spent three hours completing the exercise d. how confident are you in this prediction?
Using the scores of 30 students on a statistics test determine the range. 75 52 80...
Using the scores of 30 students on a statistics test determine the range. 75 52 80 96 65 79 71 87 93 95 69 72 81 61 76 86 79 68 50 92 83 84 77 64 71 87 72 92 57 98
The following data shown are the Test scores from our first Test . 63        70        93       ...
The following data shown are the Test scores from our first Test . 63        70        93        80        90        82        75        75        48        92        97        70 56        79        34        67        48        66        60        90        95        89        76        82         61      96         60        93         54        88       59         71       92        55        70         57     59        69        80        45         74       75        68        57        100    86       79         59 * 1. Construct the...
The following represent the scores 63    96    71    91    65    62    73    66    85    28    70 &n
The following represent the scores 63    96    71    91    65    62    73    66    85    28    70    82    68    71    77    67    85    53    68    80    82    45 60    42    30    83    45    94    55    56    65    87    96    47    88    51    79    100 92    77    64    83    41    58 77    70    89    78    52    96    77    75    74    77    88    67    47    38    83    81    66    77    61    68    53    88 72    48    77    77 100 53    68    42    60   ...
The test scores of 10 students are listed below. 32, 69, 77, 82, 100, 68, 88,...
The test scores of 10 students are listed below. 32, 69, 77, 82, 100, 68, 88, 95, 75, 80 a. Determine the five-number summary and draw a boxplot for the given data above. Minimum ________ Q1 ________ Median ________ Q3 ________ Maximum b. Is there any outlier? Justify your answer. c. Which of the measures of center would be best to represent the data? Justify your answer
A study is conducted to determine if a newly designed text book is more helpful to learning the material than the old edition. Test Score 80 85 73 68 92 89 79 70 94 96
A study is conducted to determine if a newly designed text book is more helpful to learning the material than the old edition. The mean score on the final exam for a course using the old edition is 75. Ten randomly selected people who used the new text took the final exam. Their scores are shown in the table below. Person A B C D E F G H I J Test Score 80 85 73 68 92 89 79...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT