Question: Provide in the right column with corrected indention and alignment for the code in the left column. Now can you see how important it is

Provide in the right column with corrected indention and alignment for the code in the left column. Now can you see how important it is to OBSERVE the code indentation and alignment rule!!!!!

import java.util.Scanner;

public class IncorrectIndentIsUnacceptable{

public static void

main(String[] args)

{int hours = 0;

double salary =0.0,rate=5.00;

Scanner input = new Scanner(System.in);

System.out.print("Enter hours worked(0-40): ");

hours = input.nextInt();

while(hours<0 || hours>40){

System.out.print("Re-enter hours worked(0-40): ");

hours = input.nextInt();

}salary = hours * rate;

System.out.printf("Salary: $%5.2f ",salary);

}}

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!