this is a Matlab question Assume the folowing variables are stored in MATLAB\'s
ID: 3737574 • Letter: T
Question
this is a Matlab question
Assume the folowing variables are stored in MATLAB's workspace. Determine the output displayed on the screen by the tollowing code Click the loon to viow the varables Click the icon to view the code Total Cost per Dar s t550 (Type an exact answer in decimal notation as appears in MATLAB oommand wrdos) totai of 3060 Sonic Pliers was produced in 65 days. (Type an exact answer in decimal notation as it appears in MATLAB comemand window.) T More Info More Info MCos 500 wRate = 45 OCast 1050; WPrice48.17 Days 65 wName "Sonic Piers: % machine cost in dollars/day % widgets produced/day % aperating cost in dollarsiday % sales price in dollars/widget % number of days the machine operates % name of the widget produced printf(Total Cost per Day SSO 2hnTC NumW-WRate Days, printrA total of %.or %s was produced in %0.0f days 'n' Nur ww Narre.Daysi Income Numw WPrice fprintrThese will sell at $3602t aach for a total of $%O.0inWPrice,income) printiThis will make a profit of $$60 21 ri,income-TCost Days) Print Done Print DoneExplanation / Answer
%Type the below following code in Matlab Editor and save
%the file with name of your choice.
%Output.m
MCost=500; %machine cost in dollars/day
WRate=45; %widgers produced /day
OCost=1050; %operating cost in dollars/day
WPrice=48.17; %salae price in dollars/day
Days=65;%number of days the macahing
WName='Sonic Pliers'; %name of the widger produced
TCost=MCost+OCost;
fprintf('Total Cost per Day : $%0.2f ',TCost)
NumW=WRate*Days;
fprintf('A total of %.0f %s was produced in %0.0f days ',NumW,WName,Days)
Income=NumW*WPrice;
fprintf('These will sell ast $%0.2f each for a total of $%0.0f ',Income)
fprintf('This will make a profit of $%0.2f. ',Income-TCost*Days)
%Output:
Total Cost per Day : $1550.00
A total of 2925 Sonic Pliers was produced in 65 days
These will sell ast $140897.25 each for a total of $This will make a profit of $40147.25.
>>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.