Question: 3 6 . Write an i f statement that prints Age is valid, if the value of the variable employee - Age is within the

36. Write an i f statement that prints "Age is valid", if the value of the variable employee-Age is within the range 18 through 65, and prints "Invalid Age" otherwise.37. Write an if statement that prints the message "Time is valid" if the variable hours is within the range 0 through 23 and the variable minutes is within the range 0 through 59.38. Write a conditional expression that prints "Negative" if the variable number is less than 0 and "Positive" otherwise.
39. Assume str1 and str2 are string objects that have been initialized with different values. Write an if/else statement that compares the two objects and displays the
one that is alphabetically greatest.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!