Write a program in java to enter basic salary and calculate
gross salary.
Answers
Answered by
0
Explanation:
Import the Scanner.
Declare the class as public.
Add the void main function.
Add system. out. println() function with the message to enter basic salary.
Declare input as Scanner.
Take the basic salary and save it in variable.
Calculate Gross salary and save it in other variable.
Add system. out.
Answered by
6
ᴜʀ ᴀɴsᴡᴇʀ
Here the basic salary will be calculated as per follows Basic Salary + Dearness Allowance + HRA Allowance + conveyance allowance + entertainment allowance + medical insurance here the gross salary 594,000. The deduction will be Income tax and provident fund under which the net salary comes around 497,160.
Similar questions
Math,
4 months ago
Computer Science,
4 months ago
Science,
4 months ago
English,
8 months ago
Psychology,
8 months ago
English,
1 year ago
Chemistry,
1 year ago
French,
1 year ago