Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank (String) as "Assistant","Associate" ,or "Lecturer" (ignore case). Assume all inputs are valid and there is no need for validation. Your program should display the Tax amount and Net Salary as follows: Tax Amount =Salary x Tax Rate Net Salary= Salary - Tax Amount

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
Write a JAVA program that asks the user to input the instructor Salary (double) and Academic
Rank (String) as "Assistant","Associate" ,or "Lecturer" (ignore case). Assume all inputs are
valid and there is no need for validation. Your program should display the Tax amount and Net
Salary as follows:
Tax Amount= Salary x Tax Rate
Net Salary= Salary - Tax Amount
Tax Rate can found from the following table
Academic Rank
Tax Rate
Assistant
Associate
9%
12%
Lecturer
7%
Sample Input /Output
Input instructor Salary: 955.7
Input Academic Rank: Assistant
The amount of Tax is BD 86.013
The Net Salary is BD 869.687
Note: Your answer should follow the given sample input / output.
Transcribed Image Text:Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank (String) as "Assistant","Associate" ,or "Lecturer" (ignore case). Assume all inputs are valid and there is no need for validation. Your program should display the Tax amount and Net Salary as follows: Tax Amount= Salary x Tax Rate Net Salary= Salary - Tax Amount Tax Rate can found from the following table Academic Rank Tax Rate Assistant Associate 9% 12% Lecturer 7% Sample Input /Output Input instructor Salary: 955.7 Input Academic Rank: Assistant The amount of Tax is BD 86.013 The Net Salary is BD 869.687 Note: Your answer should follow the given sample input / output.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 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
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