Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please 1 2 3 4 5 please basic matlab please 1) cal create a fish structure with breed' length and weight fields infinice Juhile loop

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

please 1 2 3 4 5 please basic matlab please

1) cal create a fish structure with breed' length and weight fields infinice Juhile loop asking the user to enter values for these three fields structure elrants should have feld vawes the entered vawer At everry tecato ase the they user uont add the is fish, when answer in ( for no) stop asking for more ' input. Display , each fish elerent the screen, 1 (6) Check the values entered for length breed, ie the the depending following user conditons ola hot hold, ask o enter neil values fish leag sare tength of the 1st fish in the is 204 length of the given range, 1st fish again) Display each tish element screen the Trout 20 - - - 1 + Salmon 140 CM CM Anchovies : 12-16 Tuna 80-120ch O 119 2) write a function to create Structure ebrents candomly, Breed of all dish should be trout length Show ld assigned a random Integer be tuon O and 100 weight should be assigned random number between After all 10 fishes created check the length or each tish the length is not in 2-4 cm range, delete the eleront Stncture, Function should return I o M created fish structure with at most 10 elements, * 3) Implement 3 and os eleccent by - element operations in function using nested for loops. There should be function for each operation functions, should two arrays as input and return an array for the result Given arrays uust be sare size end your implementation mest core for any given array size Submit your functions and the code where call your function Mah. Ml 490 using rested E of the 4) Implerent the polyval function for giver polynomial coefficients at giver dota ponts using while Loops function should toke coefficients and dota points Input retum calculated values olenonal. Function must work for any given number of coefficients points Evaluate the following polynomial at given points using your x3-2 +8 2x 5

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago