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

2. The following table shows the hourly wages, hours worked, and number of produ

ID: 3749667 • Letter: 2

Question

2. The following table shows the hourly wages, hours worked, and number of products assembled for 6 workers in 1 week at a final product assembly line at Southeastern HiTechBuilder Center Worker Hourly pay 15 13.5 16 15.5 14.75 13.5 Hours worked 42 36 40 48 42 50 # Products assembled 322 265 310 375 320 376 Use array indexing and relevant MATLAB features to perform the following a. Define the last three columns above as A b. Extract the hourly pay column from array A c. Extract the hours worked column from array A d. Extract the # Products assembled from array A. e. Find how much each worker earned in the given week? f. Find the total salary amount paid put? Save it as hr_pay Save it as hrs Save it as no_prd Save to the variable wk_pay Use sum command to get the summation of a column Find how many products were assembled? Find the average cost to assemble one product? (Total cost/Total product assembled) Find the average time, in minutes, it take to assemble one product? Total hours/Total products) *60 See the posted sample script Sales Array Exercise.m for similar operations Save to the variable salary Save to the variable prds g. h. Save to the variable avg cost i. Save to the variable avg_time

Explanation / Answer

A=[15 42 322;13.5 36 265;16 40 310;15.5 48 375;14.75 42 320;13.5 50 376];
hr_pay=A(:,1);
hrs=A(:,2);
no_prd=A(:,3);
wk_pay=hr_pay.*hrs;
salary=sum(wk_pay);
prds=sum(no_prd);
avg_cost=salary/prds;
avg_time=sum(hrs)*60/prds;

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