Question: WakeTech (IN JAVA) Create a program that generates a random integer between 0 and 99 (inclusive). If the integer is divisible by 5, print Wake.
WakeTech (IN JAVA)
Create a program that generates a random integer between 0 and 99 (inclusive). If the integer is divisible by 5, print "Wake." If the integer is divisible by 7, print "Tech." If the integer is divisible by both 5 and 7, print "WakeTech." Otherwise, print the number.
For testing, temporarily comment out the call to Math.random() and insert an assignment statement. Run the program 4 times using the following values: 35, 25, 49, and 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
