21.9k views
0 votes
Using the flowchart above, which decision statement will correctly check that hoursWorked is greater than or equal to the FULL_WEEK constant?

a.
hoursWorked >= FULL_WEEK

b.
hoursWorked > FULL_WEEK

c.
hoursWorked == FULL_WEEK

d.
hoursWorked != FULL_WEEK

User Wapgui
by
5.6k points

1 Answer

4 votes

Answer:

hoursWorked >= FULL_WEEK

Step-by-step explanation:

The operator sign and meaning:

> means greater than

< means less than

= equal sign

! means NOT operator

== means equal equal sign

Option a: hoursWorked >= FULL_WEEK

It means hoursWorked is greater than or equal to FULL_WEEK.

Option b: hoursWorked > FULL_WEEK

It means hoursWorked is greater than to FULL_WEEK.

Option c: hoursWorked == FULL_WEEK

It means hoursWorked is equal equal to FULL_WEEK.

Option d: hoursWorked != FULL_WEEK

It means hoursWorked is not equal to FULL_WEEK.

Therefore, Option a is the correct option.

User Bgoosman
by
4.7k points