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

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!