(Solved) : 221 Lab Payroll Note Use Grasp Another Java Ide Write Code Upload File Test Class Must Na Q44119712 . . .

2.21 LAB: Payroll *NOTE: You will use Grasp or another java IDE to write your code and then upload your file here to test it. Your class must be named Payroll and your file named Payroll.java * Prompt the user to enter their first and last names, the hours they worked (a whole number) and their pay rate. Then, calculate and display the user’s full name and pay for the week. (10 points) Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user’s input value is shown on the next line, but such values don’t actually appear as output when the program runs. Enter your first name: John Enter your last name: Doe Enter your hours worked: 40 Enter your pay rate: 7.25 John Doe, your pay is $290.0 LAB ACTIVITY 2.21.1: LAB: Payroll 0/10 Submission Instructions Compile command javac Payroll.java We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. Payroll.java Drag file here or Choose on hard drive. Submit for grading Show transcribed image text 2.21 LAB: Payroll *NOTE: You will use Grasp or another java IDE to write your code and then upload your file here to test it. Your class must be named Payroll and your file named Payroll.java * Prompt the user to enter their first and last names, the hours they worked (a whole number) and their pay rate. Then, calculate and display the user’s full name and pay for the week. (10 points) Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user’s input value is shown on the next line, but such values don’t actually appear as output when the program runs. Enter your first name: John Enter your last name: Doe Enter your hours worked: 40 Enter your pay rate: 7.25 John Doe, your pay is $290.0 LAB ACTIVITY 2.21.1: LAB: Payroll 0/10 Submission Instructions Compile command javac Payroll.java We will use this command to compile your code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. Payroll.java Drag file here or Choose on hard drive. Submit for grading
Expert Answer
Answer to 2.21 LAB: Payroll *NOTE: You will use Grasp or another java IDE to write your code and then upload your file here to tes…
OR