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 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 17:40
Write a modular program (no classes yet, just from what you learned last year), that allows two players to play a game of tic-tac-toe. use a two-dimensional char array with 3 rows and 3 columns as the game board. each element of the array should be initialized with an asterisk (*). the program should display the initial board configuration and then start a loop that does the following: allow player 1 to select a location on the board for an x by entering a row and column number. then redisplay the board with an x replacing the * in the chosen location. if there is no winner yet and the board is not yet full, allow player 2 to select a location on the board for an o by entering a row and column number. then redisplay the board with an o replacing the * in the chosen location. the loop should continue until a player has won or a tie has occurred, then display a message indicating who won, or reporting that a tie occurred. player 1 wins when there are three xs in a row, a column, or a diagonal on the game board. player 2 wins when there are three ox in a row, a column, or a diagonal on the game board. a tie occurs when all of the locations on the board are full, but there is no winner. input validation: only allow legal moves to be entered. the row must be 1, 2, or 3. the column must be 1, 2 3. the (row, column) position entered must currently be empty (i.e., still have an asterisk in it).
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
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
Advanced Placement (AP), 17.12.2020 23:20
question
Arts, 17.12.2020 23:20
question
Health, 17.12.2020 23:20
Questions on the website: 13722367