Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

~~~~~~~~~~~~~~~~Please use MATLAB to answer the following question. Also, please provide correct coding input and output - thanks!~~~~~~~~~~~ (YOU ONLY NEED TO ANSWER QUESTION #2

~~~~~~~~~~~~~~~~Please use MATLAB to answer the following question. Also, please provide correct coding input and output - thanks!~~~~~~~~~~~

(YOU ONLY NEED TO ANSWER QUESTION #2 - Also the table is randomized, so it does not matter what order the grades of each student are in)

image text in transcribed

GRADE OF STUDENTS

92 89 68 88 80
78 96 78 100 69
98 58 87 77 89
45 78 45 77 96
43 88 87 44 98
23 56 89 100 95
78 52 78 78 97
87 45 96 85 45
67 87 98 82 78
56 85 96 80 78
98 98 98 80 72
78 48 88 87 76
87 52 55 85 72
76 48 78 82 79
67 78 89 89 76
78 92 98 87 75
89 95 45 85 74
90 87 87 89 71
90 58 65 85 89
98 96 68 87 95
Create a vector GAorC that contains all of grades A and C data V. 2. Write a function called grade that takes one scalar input representing the grade of a student. Your function does not return any value but determines the letter grade of the student based on the scale in problem 1. If you run your code with grade 385, the program should print the following: Your grade is: 85 and that is B Test your program with the following grades: 34, 64, 78, 87, 98, 100,102. 11 A A th norou umont a repro cont no

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions