More loops
Download
1 / 15

More loops The percentage of bosses that think that their ... - PowerPoint PPT Presentation


  • 304 Views
  • Uploaded on

More loops. The percentage of bosses that think that their jokes are “very very funny” is. 3 95 98. This percentage of employees who think that their bosses are “very very funny” is. 3 95 98.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'More loops The percentage of bosses that think that their ...' - Solomon


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript



Slide4 l.jpg
This percentage of employees think that their bosses are “very very funny” when the boss is conducting the survey is

  • 3

  • 95

  • 98


The output of the last line is for i 1 1 3 for j 1 1 2 s i j end end s l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isfor i=1:1:3 for j=1:1:2 s=i*j; endends

  • 0

  • 2

  • 6

  • 11


The output of the last line is s 5 for i 1 1 3 for j 1 1 2 s i j end end s l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey iss=5;for i=1:1:3 for j=1:1:2 s=i*j; endends

  • 1

  • 5

  • 6

  • 11


The output of the last line is sum1 0 for i 1 1 3 for j 1 1 3 sum1 sum1 4 end end sum1 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey issum1=0;for i=1:1:3 for j=1:1:3 sum1=sum1+4; endendsum1

  • 0

  • 4

  • 12

  • 36


The output of the last line is sum1 0 for i 1 1 3 for j 1 1 3 sum1 sum1 2 end end sum1 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey issum1=0;for i=1:1:3 for j=1:1:3 sum1=sum1*2; endendsum1

  • 0

  • 18

  • 64

  • 128


The output of the last line is sum1 1 for i 1 1 3 for j 1 1 3 sum1 sum1 2 end end sum1 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey issum1=1;for i=1:1:3 for j=1:1:3 sum1=sum1*2; endendsum1

  • 0

  • 18

  • 128

  • 512


The output of the last line is i 0 while i 4 j i 3 i i 1 end j l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isi=0;while i<=4 j=i*3; i=i+1;endj

  • 0

  • 5

  • 12

  • 15


The output of the last line is i 0 while i 4 i i 1 j i 3 end j l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isi=0;while i<=4 i=i+1; j=i*3; endj

  • 0

  • 5

  • 12

  • 15


The output of the last line is f inline x 2 sum f 2 f 4 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isf=inline(′x^2′);sum=f(2)+f(4)

  • 4

  • 6

  • 16

  • 20


The output of the last line is f inline x 2 sum f 2 4 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isf=inline(′x^2′);sum=f(2+4)

  • 6

  • 16

  • 20

  • 36


Slide14 l.jpg

function out=valfun(f,a,b) “very very funny” when the boss is conducting the survey is% f= function of x% a= input real number% b= input real numberout=(f(a)-b)/5is saved in valfun.m file, what would be the output of the last line of the following test programg=inline(′2*x′)outvalue=valfun(g,3,4)

  • -2/5

  • 2/5

  • 6/5

  • 6


Slide15 l.jpg
The output of the last line is “very very funny” when the boss is conducting the survey isfor i =1:1:2 a(i,i)=0;endsum1=0;for i=1:1:2 for j=1:1:2 sum1=sum1+5; endendsum1

  • 0

  • 5

  • 10

  • 20


ad