We appreciate your visit to java import java util Scanner public class Main public static void main String args double sal fin 0 t Scanner s new Scanner System in. This page offers clear insights and highlights the essential aspects of the topic. Our goal is to provide a helpful and engaging learning experience. Explore the content and find the answers you need!

```java
import java.util.Scanner;

public class Main {
public static void main(String args[]) {
double sal, fin = 0, t;
Scanner s = new Scanner(System.in);

System.out.println("ENTER THE BASIC SALARY OF THE EMPLOYEE: ");
sal = s.nextDouble();

if (sal <= 50000 && sal >= 0) {
fin = 0;
} else if (sal > 50000 && sal <= 60000) {
t = sal - 50000;
fin = 0.1 * t;
} else if (sal > 60000 && sal <= 150000) {
t = sal - 60000;
fin = 0.2 * t;
} else if (sal > 150000) {
t = sal - 150000;
fin = 0.3 * t;
} else {
System.out.println("NO TAX APPLICABLE");
}

System.out.println("THE TAX PAYABLE IS: " + fin);
}
}
```

This is a simple Java program that calculates the tax payable based on the employee's basic salary. The program uses conditional statements to determine the tax rate and computes the tax accordingly.

Answer :

Final answer:

The question relates to a Java program which uses the Scanner class to input an employee's basic salary, and uses if-else statements to calculate tax payable based on different salary brackets.

Explanation:

This question pertains to a Java program that calculates the tax payable based on a person's salary. The Scanner class is used to get user input for the employee's basic salary. There are several conditionals (if-else statements) that calculate the final tax based on different salary ranges; for example, if the salary is over 50000 but under or equal to 60000, the tax payable is 10% of the amount over 50000.

Learn more about Java programming here:

https://brainly.com/question/37969666

#SPJ11

Thanks for taking the time to read java import java util Scanner public class Main public static void main String args double sal fin 0 t Scanner s new Scanner System in. We hope the insights shared have been valuable and enhanced your understanding of the topic. Don�t hesitate to browse our website for more informative and engaging content!

Rewritten by : Barada