1. (15 pts) This question requires: matrix manipulation, single for-loop, if/else statement, data input, .m script file: We have 80 number grades held in a matrix (grades.m;). The letter grades are given by following the rule: "A" ($\ge$ 90), "B" ($\ge$ 80), "C" ($\ge$ 70), "D" ($\ge$60), "F" ($<$ 60) and "S" ($==$0); "S" standards for sick. Write ONE script file to: \begin{itemize} \item Give the letter grade to EACH number grade in the matrix; \item Put the letter grades in a 10 x 8 matrix \end{itemize} The letter grade matrix should look like: CBBBADCB ACDBACSA BACBBBCA SACBBCAB ASBBBBBB DASBSBBA CBCBAASA ABBAADAB ABAAAABA BBCBAABC
Added by Jessica S.
Close
Step 1
m". ```matlab load grades.m ``` Show more…
Show all steps
Your feedback will help us improve your experience
Haricharan Gupta and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write MATLAB codes to do the following tasks a) solve the following simultaneous equations: 4x1 + x2 = x3 + 3 x1 - 3x2 - 2x3 + 4=0 x1 - 2x2 - x3 = -6 b) Find the roots of the following polynomial then plot the polynomial, over the range (-10 < x < 40) 4x2 - 3x3 + 15 = 2x2 - 20 c) Write a program that accepts a numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following table. A x >= 90 B 80 <= x <= 89 C 70 <= x <= 79 D 60 <= x <= 69 F x < 60 D) Use a for loop to determine the sum of the first 12 terms in the series 4(k3 +2), k = 1, 2, 3, . . . , 12.
Sri K.
Assign letter grade to each student after above calculations are completed using Vlookup or Hlookup. (10 points) 8. What is the final grade distributions? In other words, how many students earned A, B, C, D, and F? Organize your data by grade in your excel sheet to show your result. (15 points) Grading scale: >= 0 and <60 F >= 60 and <70 D >= 70 and <80 C >= 80 and <90 B >= 90 and <100 A 9. Sort the table based on their letter grade. (5 points) 10. Create a column chart that shows the distribution of the grades. (5 points) 11. Format and edit the chart by adding titles and a style. (10 points) 12. Format and style the table of grades. (10 points)
Write a grading program for a class with the following grading policies: 1. There are two quizzes, each graded on the basis of 10 points. 2. There is one midterm exam and one final exam, each graded on the basis of 100 points. 3. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.) Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program will read in the student's score (two quizzes and two exams) and output the student's record, which consists of two quiz and two exam scores, as well as the student's average numeric score for the entire course and the final letter grade.
Vaidik S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD