JAVA BLUEJ QUESTION: What is the value of Print Head Position after running the following code segment?:


final double MOVEMENT_INCREMENT = 0.1; // mm


adjustments = 0;

printHeadPosition = 2.7;

desiredPosition = 10.8;


while(printHeadPosition != desiredPosition)

{

printHeadPosition = printHeadPosition + MOVEMENT_INCREMENT;

adjustments++;

}


I tried plugging it into BlueJ, but sometimes the output window refuses to load and other times the output window is asking for an input despite the fact I never specified for one?

JAVA BLUEJ QUESTION What is the value of Print Head Position after running the following code segmentfinal double MOVEMENTINCREMENT 01 mmadjustments 0printHeadP class=
JAVA BLUEJ QUESTION What is the value of Print Head Position after running the following code segmentfinal double MOVEMENTINCREMENT 01 mmadjustments 0printHeadP class=