Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions