Question: Write a Java program to compute the income after tax of an employee based on the following rule of tax rate. Assuming the salary is

  1. Write a Java program to compute the income after tax of an employee based on the following rule of tax rate. Assuming the salary is $22000, display the tax and the income after tax.

  • 12% if salary 25,000
  • 5% if salary < 10,000
  • Otherwise 8% will be applied

  1. Write a Java program to compute and display the sum of the numbers that can be both divisible by 6 and 8 from 1 to 500.

  1. Suppose there is a list of 15 integers: 38, 15, 29, 148, 72, 64, 116, 99, 284, 223, 117, 202, 63, 114, 96. Write a program that can i) display the even integers in ascending order and display their sum; ii) display the odd integers in ascending order and display their sum. (Hint: Use Arrays class to sort array items)

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!