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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Think about some of the most memorable and forgettable games ever created. they can be games that were discussed in this unit or otherwise. what are some of the consistent factors that made certain games memorable to you? what were some of the consistent factors that made certain games forgettable to you? why? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
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
question
History, 24.03.2020 21:43
question
History, 24.03.2020 21:43
Questions on the website: 13722363