Making a Decision If else end Do not be Katy Perrys Boyfriend - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

Making a Decision If else end Do not be Katy Perrys Boyfriend

Description:

If else end. Be the decider. Pseudocode means. Code that is wrong ... end. if (B 90) G=3. end. G. 1. 2. 3. 79 % Output of last line. if round(5.5)==5. A=10; else ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 19
Provided by: kaw56
Category:

less

Transcript and Presenter's Notes

Title: Making a Decision If else end Do not be Katy Perrys Boyfriend


1
Making a DecisionIf else endDo not be Katy
Perrys Boyfriend
  • Cause you're hot then you're coldYou're yes then
    you're noYou're in then you're outYou're up
    then you're down

2
The name of the person in the picture is
  • Soulja Boy
  • TI
  • Pitbull
  • MC Hammer

3
Pseudocode means
  • Code that is wrong
  • A mixture of code and plain English
  • Flowchart
  • Waste of time

4
operator stands for
  • Approximately equal to
  • Not equal to
  • Equal to

5
5lt6
  • True
  • False

6
56
  • True
  • False

7
56
  • True
  • False

8
4lt4
  • True
  • False

9
sin(pi)0 gives false as output because
  • sin(pi)1
  • sin(pi)-1
  • sin(pi) is not defined
  • sin(pi) gives value other than zero in MATLAB

10
The operator stands for
  • Or
  • And
  • Not Equal To
  • Not

11
The operator stands for
  • Or
  • Not
  • Not equal to
  • And

12
Output of last lineA10if (Agt10)
B5else B6endB
  • 5
  • 6
  • 10
  • 11

13
Output of last lineA10if (Agt10)
B5else B6endA
  • 5
  • 6
  • 10
  • 11

14
Value of last line is B79G2if Bgt90
G1endif (Bgt80) G3endG
  • 1
  • 2
  • 3
  • 79

15
Value of last line is B79G2if Bgt90
G1endif Bgt80 G3endB
  • 1
  • 2
  • 3
  • 79

16
Value of last line is B79G2if Bgt79
G1endif (Bgt90) G3endG
  • 1
  • 2
  • 3
  • 79

17
Output of last lineif round(5.5)5 A10else
A20endA
  • 5
  • 10
  • 20

18
Output of last lineif round(5.4)5
A10else A20endA
  • 5
  • 10
  • 20
Write a Comment
User Comments (0)
About PowerShow.com