Computers and Technology

(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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, mazolethrin9632
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, bbysl15
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
image
Computers and Technology, 23.06.2019 10:30, tommyaberman
Would a ps4 wired controller work on an xbox one
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, ginaaa20
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
Do you know the correct answer?
(7 points) U. S. federal government employees are paid on a scale according to their grade and step....

Questions in other subjects: