subject

You are developing an automated process for sorting fish caught by a trawler, and you want to keep track of information from each haul. Fish are separated by weight, and assigned quality and market categories accordingly, each with separate prices per kilogram. Create a MATLAB program that will take a vector of fish weights, and create a detailed summary of the haul, complete with count, total mass, and total price for each category of fish. 1) Your MATLAB script file should
a. Take user input for the weights (kg) of all fish from the haul as a vector.
b. Use a loop to determine the number of each grade fish in the haul, and the total income for each grade of fish.
c. Determine the total income resulting from selling the haul.
d. Output a detailed invoice including the total weight of each grade of fish, the total income for each grade of fish, and the total income from the entire haul.
e. Use the following fish categories Grade Use Price ($/kg) Range (kg) S Whole Fish 20 30 < weight Fillet 20 < weight <= 30 B Canning 10 < weight <= 20 Pet Food 5<= weight <= 10 Fish Extracts 1 0< weight <5
2) Create a sample run using the weight data in kg from the following haul of 15 fish as a vector: (3,1,55,21,17,7,9,11,32,29,2,8,15,1 0,4]

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, genyjoannerubiera
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
image
Computers and Technology, 22.06.2019 23:50, Crull5999
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
image
Computers and Technology, 23.06.2019 16:50, lukeakalucas
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
image
Computers and Technology, 23.06.2019 22:30, meijorjay94p2u2zy
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
You know the right answer?
You are developing an automated process for sorting fish caught by a trawler, and you want to keep t...

Questions in other subjects:

Konu
Mathematics, 30.07.2019 06:00
Konu
Mathematics, 30.07.2019 06:00