For this program you need to use Eclipse.
Carefully read the instructions and write a program that reads the following
information and prints a payroll statement.
Employee’s name (e.g., Smith)
Number of hours worked in a week (e.g., 10)
Hourly pay rate (e.g., 9.75)
Federal tax withholding rate (e.g., 20%)
State tax withholding rate (e.g., 9%)
design a program to
• Prompt user for 5 values and read the values using Scanner
o Use method .nextLine() to get the String for the name
o Use method .nextDouble() to get all other numeric values
• Calculating the Gross pay
o Gross pay = hours worked * hourly pay rate
• Calculating the Federal withholding
o Federal withholding = Gross pay * federal tax withholding rate
• Calculating the State withholding
o State withholding = Gross pay * state tax withholding rate
• Calculating the Total deduction
o Total deduction = Federal withholding + State withholding
• Calculating the Net Pay
o Net Pay = Gross pay – Total deduction
• Formatting the output same as the Sample run (Use ONLY printf)
o Correctly format 2 decimals and use $ (hint $%.2f)
o Indenting the under Deductions (hint \t)
o Printing % for state withholding and federal withholding rate (hint refer to
practice question below)
Include a comment at the start of the program with the following.
The computer must do all calculations.
Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*See Answer
Q: Find an nfa that accepts the complement from L (ab∗aa + bba∗ab)?
A: Solution:The following graph indicates the NFA (Non-deterministic finite automata) is given below:M ...
Q: Design a modular program that asks the user to enter the monthly costs for the following expenses in...
A: We are designing the program in C++ programming language. Given below is the program designed to ent...
Q: 1.6 Compute the scalar cardinality and the fuzzy cardinality for each of thefollowing fuzzy set.
A: The scalar cardinality of a fuzzy set is calculated using the formula:
Q: #include#include#includeusing namespace std;// outputHtmlTitle// parameters// This function...void o...
A: We need to print the html, head and title tag in the outputHtmlTitle() method.The outputHtmlTitle() ...
Q: I am struggling on storing numbers from the getChoice () function into an array and pulling it back ...
A: Click to see the answer
Q: Analyze the following code: Code 1: int number = 45;boolean even; if (number % 2 == 0) even = true;e...
A: First lets discuss about the first question. 1) In the first code we are declaring two variables num...
Q: How to write a function in python where it takes a list of string s. Where s= ["hello","lazyness","p...
A: The program has the following algorithm:Intitialize the counter counting string list position number...
Q: Given that an array of int named a has been declared, and that the integer variable n contains the n...
A: Algorithm: Declare the variable “n”.Declare the array of integer elements named “a”.Assign “-1” to t...
Q: Find context-free grammars for the following language: L = anbn, n is even.
A: Context-free grammar (CFG): This grammar containing predictable set of grammar rules which contains ...