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:
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:
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
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:
Тах Атоиnt % Salary x Tаx 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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F18fd3de2-b4a2-47cf-b6d7-4c52967431ef%2F60d36b03-e779-4ab1-9e53-79a702ce3cbf%2Ff210iqf_processed.jpeg&w=3840&q=75)
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:
Тах Атоиnt % Salary x Tаx 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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning