Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions