Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write the answers as MATLAB formation. Problem 1: Write a script that asks the user to enter a list of 5 separate numbers (using

image text in transcribed
Please write the answers as MATLAB formation.
Problem 1: Write a script that asks the user to enter a list of 5 separate numbers (using the input function, i.e. list(1) =input("Enter the first number:):) and then calculates the mean, min, and max of the list of numbers using the mean, min, and max functions. The script should print out the result of the calculation on the screen to two decimal places using fprintf. Problem 2: Write a script which prompts the user to enter a list of three separate numbers (using the input function, i.e. list(1) = input('Enter the first number: ');) and a fourth number which is a "minimum value" for comparison. The code should print to the screen any of the first three numbers in the list that are greater than this fourth minimum value." Problem 3: A class has students with the following ID numbers: 104 156 126 178 101 The respective course scores for these students are: 93 86 75 96 89 Write a script that determines which students got an A in the course (a score greater than or equal to 90 - use a logical array operation like in the example). The script should print the ID numbers of the students that got an A to the screen using logical array indexing

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago