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 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
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, 03.04.2020 20:14
question
Mathematics, 03.04.2020 20:15
Questions on the website: 13722367