Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that takes the gross salary of an employee from user as input and calculate the net salary by deducting the tax on

Write a program that takes the gross salary of an employee from user as input and calculate the net salary by deducting the tax on the following basis. o If salary is greater than or equal to 50,000 then 20% tax should be deducted. o If salary is greater than or equal to 30,000 but less than 50,000 then 15% tax should be deducted. o If salary is less than 30,000 then 10% tax should be deducted. Finally, program should output the gross salary, deducted tax amount on salary and net salary of the employee in separate lines.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago