Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started