Question: Write a java program that displays the salary of a new hire in a software company. The program should read an integer representing the number

Write a java program that displays the salary of a new hire in a software company. The program should read an integer representing the number of years of programming experience and a String corresponding to the degree of the new hire: PhD, MSc or BSc.

The salary is given according to the following table:

Years of Experience >10 5-10 < 5

---------------------------------------------------------------------------------

PhD 80,000 60,000 50,000

MSc 75,000 55,000 45,000

BSc 65,000 50,000 40,000

Sample Input:

Enter the Degree (PhD, MSc or BSc): BSc

Enter the number of years of programming experience: 7

Sample Output (the tuition costs should be presented in the format of the following):

The salary of a new hired employee with a BSc degree and 7 years of work experience will be $55,000.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!