Question: In java eclipse Suppose speed and visibility are variables of type int . Write an if-else statement that sets the variable speed equal to 25
In java eclipse Suppose speed and visibility are variables of type int. Write an if-else statement that sets the variable speed equal to 25 and displays the word Caution, provided the value of speed is greater than 25 or the value of visibility is under 20. Otherwise display the string normal speed and set speed to 50.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
