Question: The code on Line#2 sets the value of the variable randomNumber to a random integer between 1 and 15. Add code to check if the

 The code on Line\#2 sets the value of the variable randomNumberto a random integer between 1 and 15. Add code to check

The code on Line\#2 sets the value of the variable randomNumber to a random integer between 1 and 15. Add code to check if the value of randomNumber is between 0 and 10 (consider values of exactly 0 and exactly 10 to be in range). If the value is in this range, assign the value 1 to the variable checkRange. If the value is NOT in this range, assign the value 0 to the variable checkRange. Use an if-else statement in your solution. Do NOT overwrite the value of the variable randomNumber. \% Enter the commands for your function here

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 Databases Questions!