Question: Code a do-while loop that keeps printing the message I have to mind my teacher! as long as the student keeps misbehaving in class. Assume

Code a do-while loop that keeps printing the message I have to mind my teacher! as long as the student keeps misbehaving in class. Assume misbehaving and input (for the Scanner class) are already declared. The variable misbehaving has been initialized to y and its the loop-control variable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!