Answered step by step
Verified Expert Solution
Link Copied!

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 100) 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 >60 and the second score is higher than the first, display "Pass and Improving".
If the average is >60 and the second score is not higher than the first, display "Pass".
If the average is 60 and the second score is higher than the first, display "Improving but not passing".
If the average is 60 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 =[6052]
Scores =[9092]
Scores =[8070]
image text in transcribed

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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago