subject

Please help with coding assignment. Write a method where you have to generate random numbers between 1 to 9 until you get the number 5, and you do it j number of times. (j represents how many times you can generate.) If you do get to 5 under j number of times, you skip a line and end the method. Write the method stopAtFive.

public int stopAtFive (int j)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
You know the right answer?
Please help with coding assignment. Write a method where you have to generate random numbers betwee...
Questions
question
History, 26.11.2020 01:00
question
Mathematics, 26.11.2020 01:00
question
Biology, 26.11.2020 01:00
question
Mathematics, 26.11.2020 01:00
question
History, 26.11.2020 01:00
question
Computers and Technology, 26.11.2020 01:00