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, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
Write a new lc-3 trap subroutine (i.e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i.e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e.g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e.g. b0000 0000 0000 0111 =
Answers: 3
question
Computers and Technology, 25.06.2019 00:30
Which email writing etiquette should ariel follow to let people know that she received their message? a. reply to their messages immediately b. use formal language c. specify the email's intent in the subject field d. be direct when writing the reply
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Lisa is making a presentation for her project and she wants to use the logo of her company in her presentation. which element would she use to make her logo stand out in her presentation? a. gradation b. contrast c. alignment d. balance
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
question
Mathematics, 04.11.2020 05:40
question
Mathematics, 04.11.2020 05:40
question
Mathematics, 04.11.2020 05:40
question
Arts, 04.11.2020 05:40
question
Mathematics, 04.11.2020 05:40
Questions on the website: 13722363