a = randi(250,12,2) pr = 0; bonus 10000; for k = 1:numel(a) pr = pr + a(k); end disp(['total hours of job done by you in a year are: ',num2str(pr)]) if pr >= 2800 disp(['Great...you earned a bonus amount of Rs. ',num2str(bonus)]) else disp(['better luck next year....']) end

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 5MQ2: What is the opposite of greater than?
icon
Related questions
Question
100%

fix the bug in matlab code and give the output

a = randi(250,12,2)
pr
0;
bonus
10000;
1:numel(a)
pr = pr + a(k);
for k
end
disp(['total hours of job done by you in a year are: ',num2str(pr)])
if pr >= 2800
disp(['Great...you earned a bonus amount of Rs. ',num2str(bonus)])
else
disp(['better luck next year....'])
end
Transcribed Image Text:a = randi(250,12,2) pr 0; bonus 10000; 1:numel(a) pr = pr + a(k); for k end disp(['total hours of job done by you in a year are: ',num2str(pr)]) if pr >= 2800 disp(['Great...you earned a bonus amount of Rs. ',num2str(bonus)]) else disp(['better luck next year....']) end
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning