Question: Given the following code: double hourlyPay = 0.0; Scanner scan = new Scanner (System.in); System.out.println(Enter hourly pay rate.); hourly Pay =.scan.nextDouble (); Write this statement
Given the following code: double hourlyPay = 0.0; Scanner scan = new Scanner (System.in); System.out.println("Enter hourly pay rate."); hourly Pay =.scan.nextDouble (); Write this statement {System.out.println("Hourly pay rate must be between 4.50 and 21.50."); System.out.println("Enter a valid hourly pay rate.") hourlyPay = scan.nextDouble (); {//End While Assume that valid hourly pay must be in the range of 4.50 through 21.50, inclusive. Type the exact text for the line of Java that should replace Write this statement shown above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
