Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are assessing the price of various components from different vendors and wis

ID: 3559835 • Letter: Y

Question

You are assessing the price of various components from different vendors and wish to find the least expensive vendor for each component. The prices of the parts from each vendor are stored in a matrix, VendCost. Each row corresponds to a specific vendor and each column corresponds with a specific component. If a specific part is not offered by a vendor, the correspoinding entry will be -1. Write a program that will determine which vendor offers the cheapest price for each component, and place the results in a two row matrix Cheapest with the same number of columns as there are columns in VendCost. Each entry in the first row of Cheapest should be an integer corresponding to the row number of the vendor with the cheapest price for the corresponding component and the entries in row 2 should contain the lowest price for that component. You may assume each part is available from at least one of the listed vendors. If two or more vendors offer a component at the same lowest price, you may choose either one. You may not use the built-in min function or other similar functinos. You may not use direct matrix operations to solve this problem; you must do it using for loops (in a meaningful way). Your solution must work for any number of vendors and any number of components. THIS IS USING MATLAB!

Explanation / Answer

Complete software packages. If you expect that you'll be using more than one of these programs, you may want to consider these options:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote