subject

/* write a method named makeguesses that will guess numbers between 1 and 50 * inclusive until it makes a guess of at least 48. it should report each * guess and at the end should report the total number of guesses made. */public void makeguesses() { int count = 0; random r = new random(); int guess; do { guess = 1 + r. nextint(50); count++; system. out. println("guess = " + guess); } while(guess < 48); system. out. println("total guesses = " + count); }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:40
When the pc version of the spreadsheet program became available, the ibm pc quickly became the top-selling personal computer?
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
Read โ€œsuburban homes construction projectโ€ at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
You know the right answer?
/* write a method named makeguesses that will guess numbers between 1 and 50 * inclusive until it ma...
Questions
question
Mathematics, 28.01.2020 07:31
Questions on the website: 13722359