expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 1

Assume that the following variables contain the values shown:

 Assume that the following variables contain the values shown:

Step-by-step solution
Verified
like image
like image

Step 1 of 12

Consider the following variables and their values:

numberBig = 300

numberMedium = 100

numberSmall = 5

wordBig = "Elephant"

wordMedium = "Horse"

wordSmall = "Bug"

a. Boolean Expression:

numberBig = numberSmall?

The value of numberBig is 300 and the value of numberSmall is 5.

So, the values of numberBig and numberSmall are different.

Hence, the Boolean expression is False.


Step 2 of 12


Step 3 of 12


Step 4 of 12


Step 5 of 12


Step 6 of 12


Step 7 of 12


Step 8 of 12


Step 9 of 12


Step 10 of 12


Step 11 of 12


Step 12 of 12

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon