Q1. An employee wants to calculate his total salary after deducting an amount for car loan based on his employee code. Write a java program to find total salary of the employee using following instructions. Save the project/file as QlyourlID (ex: Q142S123). (USE switch/if...else statement) • INPUT income of employee. • ENTER/INPUT empCode, empName. • Find the loan based on the table given below using switch/if...else statements: empCode 10 for Director loan 80 % of income 20 for Manager 30 for Supervisor 30% of income 15% of income Others 5% of income • Calculate totalSalary where totalSalary • Display empName and totalSalary income - loan %3D

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
100%
Q1. An employee wants to calculate his total salary after
deducting an amount for car loan based on his employee code.
Write a java program to find total salary of the employee using
following instructions. Save the project/file as QlyourlID (ex:
Q142S123). (USE switch/if...else statement)
• INPUT income of employee.
• ENTER/INPUT empCode, empName.
• Find the loan based on the table given below using
switch/if...else statements:
empCode
10 for Director
loan
80 % of income
20 for Manager
30 for Supervisor
30% of income
15% of income
Others
5% of income
• Calculate totalSalary where totalSalary = income - loan
• Display empName and totalSalary
Transcribed Image Text:Q1. An employee wants to calculate his total salary after deducting an amount for car loan based on his employee code. Write a java program to find total salary of the employee using following instructions. Save the project/file as QlyourlID (ex: Q142S123). (USE switch/if...else statement) • INPUT income of employee. • ENTER/INPUT empCode, empName. • Find the loan based on the table given below using switch/if...else statements: empCode 10 for Director loan 80 % of income 20 for Manager 30 for Supervisor 30% of income 15% of income Others 5% of income • Calculate totalSalary where totalSalary = income - loan • Display empName and totalSalary
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning