subject

(7 points) U. S. federal government employees are paid on a scale according to their grade and step. There are a total of 15 grades, each of which contains 10 steps. The table below1 shows annual salaries (in USD) as of 2020 for the first 3 grades and the first 4 steps from each. Write a program named WorkingForTheMan. java that uses the switch statement to determine the salary of a government employee. Your program should allow the user to enter two inputs: the grade and step. It should then display the appropriate salary based on the table above. You need to implement only the first 3 grades and first 4 steps. Include default cases to cover situations where the user enters an invalid grade or step. Do not use any form of the if statement in your program. Hint: This can be done by nesting switch statements! Example program run (underlined parts indicate what the user enters) Enter employee grade: 2 Enter employee step: 4 Salary: $23840 Example program run (underlined parts indicate what the user enters) Enter employee grade: 1 Enter employee step: 5 Error - step must be between 1 and 4 Example program run (underlined parts indicate what the user enters) Enter employee grade: -4 Error - grade must be between 1 and 3

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Which of the following statements best describes it careers?
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
Is a major factor in the widespread use of global information systems
Answers: 1
You know the right answer?
(7 points) U. S. federal government employees are paid on a scale according to their grade and step....
Questions
question
Mathematics, 08.03.2021 22:00
Questions on the website: 13722360