contestada

Given year is positive, which expressions for XXX, YYY, and ZZZ will output the correct range? Choices are in the form XXX / YYY / ZZZ.
If XXX: Output "1-100"
Else If YYY: Output "101-200"
Else If ZZZ: Output "201-300"
Else: Output "Other"
a. year > 0 / year > 99 / year > 199
b. year > 0 / year > 100 / year > 200
c. year < 100 / year < 200 / year < 300
d. year < 101 / year < 201 / year < 301

Respuesta :

Note that the given year is positive, the expressions for XXX, YYY, and ZZZ that will output the correct range is: "year > 0 / year > 100 / year > 200." (Option B). This is a Range Output exercise in programming.

What is range output?

In the context of the above exercise, range output is a string that specifies a range of values for the variable "year". The output would depend on the value of "year", and there are four possible outputs: "1-100", "101-200", "201-300", or "Other".

The above option is correct because the first condition, year > 0, will cover all positive values of the year.

The second condition, year > 100, will cover all values between 101 and 200.

The third condition, year > 200, will cover all values between 201 and 300.

If the year is not within any of these ranges, the final Else condition will output "Other".

Learn more about Output;
https://brainly.com/question/18891815
#SPJ1