Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c. Re-code 1b using a while loop with a priming read. 1b) b. Code a do-while loop that keeps printing the message I have to
c. Re-code 1b using a while loop with a priming read.
1b) b. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started