Pergunta de entrevista da empresa MathWorks

Math: you need more logical thinking than technical math knowledge. example question was: It takes respectively 4, 7 and 13 days (don't remember the exact numbers) for Matt, Alicia and John to build a car. If they all work together and build a car that costs $15000, how much money can be attributed to Alicia's work?

Resposta da entrevista

Sigiloso

14 de set. de 2017

Depending on ur values this is how u solve it in MATLAB %(I abbreviated names into initials as variables for convenience) %Calculate how much money does each one of them make in one day working solo M=15000/4; A=15000/7; J=15000/13; %Now if they work together each of them will work for equal number of days as the deadline is %same. Let total number of days it took to build the car together be x. % M*x +A*x + J*x = 15000 x=15000/(M+A+J); % u'll get total no. of days. % now to calculate how much Alicia will make u need to multiply her daily income to the the total %days ans=A*x