Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

By using Matlab coding please omework 2 ired Homework 2 here WVU Summer 2018 7. Consider the array of grades given below: Grades [98 72

By using Matlab coding please image text in transcribed
omework 2 ired Homework 2 here WVU Summer 2018 7. Consider the array of grades given below: Grades [98 72 88 58 66 90 93 99 82 80 Use the Grades array to complete the following tasks: (a) Find the maximum and minimum grades and delete them from the array Hint: Be careful in the order you do these. You may get an error ("Matrix index is out of range for deletion.") if you do the commands in the wrong order. Think about what is happening to the array. (b) Find the average of the new Grades array, round this number to 1 decimal place, (c) Use the fprintf command to tell the user, "After removing the highest and lowest (d) Generate a new array called Added which goes from 100 down to 60 with a (e) Overwrite the original Grades variable by appending the Added array to the end (1) Assign the first eight elements of the Grades array to a variable called and set this value to a variable named Average. grades of XX and XX, the average is now xxx." spacing of 5. (100,95,90, 85, 80,, 60) of Grades (one long row array). OriginalGrades (8) Reverse the order of the Grades variable. Name the new reversed grades variable ReversedGrades (h) Use output functions to tell the user what the original grades were (after removing the highest and lowest -the OriginalGrades variable) and tell the user what the updated Grades variable is. Make sure to show these in a neat manner to the user using output functions

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_2

Step: 3

blur-text-image_3

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions