Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you help me write code using matlab please. Write a code that accepts an array that has the scores of two exams ( out
Can you help me write code using matlab please. Write a code that accepts an array that has the scores of two exams out of for a student. The code should calculate the average of the two scores, and then displays a message according to the scores as follows:
If the average is and the second score is higher than the first, display "Pass and Improving".
If the average is and the second score is not higher than the first, display "Pass".
If the average is and the second score is higher than the first, display "Improving but not passing".
If the average is and the second score is not higher than the first, display No improvement; not passing".
The screenshot should show the code and the outputs of the code for these cases:
Scores
Scores
Scores
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started