Question: Question: Write the Java program for the given pseudocode. Using exactly 1 integer constant, 1 integer variable, 3 double variables, and 1 Scanner variable make

 Question: Write the Java program for the given pseudocode. Using exactly

Question: Write the Java program for the given pseudocode. Using exactly 1 integer constant, 1 integer variable, 3 double variables, and 1 Scanner variable make sure to fulfill the following points: 1. Declare 1 constant integer called PAYCHECKS and set it to 26. 2. Declare 1 double variable called taxRate. 3. Declare 1 integer variable called salary. 4. Declare 1 double variable called biweekly. 5. Declare 1 double variable called tax. 6. Declare 1 Scanner variable that will record keyboard inputs. 7. Prompt the user through the console for user's annual salary and the tax rate, and store the user's inputs in the variables taxRate and salary (use the same format and wording as the sample figure below). 8. Record the tax as the result of salary * taxRate. 9. Record the biweekly paycheck as the result of salary * (1 taxRate) / PAYCHECKS. 10. Output in the console a blank line followed by the message Your biweekly paycheck is . Your annual tax is . where , and are the values stored in the corresponding variables. The boxes below illustrate how your program should behave and appear. Enter your annualsalary and tax rate?130000-0.21 Your biweekly paycheck.is 4000.o. Your annual tax is.26000.0. REMEMBER in the output: - is a space and is a new line. Text in green is user input. Note 1: You are to expect a perfect user who will always enter a positive integer and double and the double is between 0 and 1; that is, do not verify the validity of user input. Note 2: The use of libraries other than java.util.Scanner is prohibited. Your program must work for any double value entered, not just the one in the sample box above

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!