Write a program that reads the following information and prints a payroll statement: Employee?s name (e.g., Smith)
Question:
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%)
A sample run is shown below:
Transcribed Image Text:
Enter employee's name: Smith -Enter Enter number of hours worked in a week: 10 Enter Enter hourly pay rate: 9.75 -Enter Enter federal tax withholding rate: 0.20 -Enter Enter state tax withholding rate: 0.09 Jercter Employee Name: Smith Hours Worked: 10.0 Pay Rate: $9.75 Gross Pay: $97.5 Deductions: Federal Withholding (20.0%): $19.5 State Withholding (9.0%): $8.77 Total Deduction: $28.27 Net Pay: $69.22
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 72% (11 reviews)
Program Plan Create a class called FinancialApplicationPayroll Initialize the main method with variables name as string hoursWorked hourlyRate fedTaxW...View the full answer
Answered By
Cristine kanyaa
I possess exceptional research and essay writing skills. I have successfully completed over 5000 projects and the responses are positively overwhelming . I have experience in handling Coursework, Session Long Papers, Manuscripts, Term papers, & Presentations among others. I have access to both physical and online library. this makes me a suitable candidate to tutor clients as I have adequate materials to carry out intensive research.
4.90+
1538+ Reviews
3254+ Question Solved
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays...
-
Write a program that reads the integers between 1 and 100 and counts the occurrences of each. Assume the input ends with 0. Hereis a sample run of the program: If a number occurs more than one time,...
-
Write a program that reads the strings from file SortedStrings.txt and reports whether the strings in the files are stored in increasing order. If the strings are not sorted in the file, displays the...
-
In August 2014, Jim acquired a 99-year lease on a flat for 170,000. In August 2020, he assigned the lease to Shirley for 212,000. The flat was never Jim's residence. Compute the chargeable gain.
-
Devise an algorithm that finds all equal pairs of sums of two terms of a sequence of n numbers, and determine the worst-case complexity of your algorithm.
-
What beliefs, values, behaviours (personal culture) meant that these workers refused to change even with the threat of being sacked? Unfortunately I didnt get the consultancy contract, so I never...
-
Understand the real-life relevance of creative accounting. L01
-
Consider a competitive market served by many domestic and foreign firms. The domestic demand for these firms product is Qd 600 2P. The supply function of the domestic firms is QSD = 200 P, while that...
-
98.4. Garden Hospital paid a three-year insurance premium of $3,600 in advance on January 1, 20x1, debiting the $3,600 to the prepaid account. At the end of the year, the necessary adjusting entry...
-
Street, Rhode and Close carried on business in partnership sharing profits and losses, in the ratio 5 : 4 : 3. Their draft statement of financial position as on 31 March 20X2 was as follows: Street...
-
Write a program that prompts the user to enter three cities and displays them in ascending order. Here is a sample run: Enter the first city: Chicago JEnter Enter the second city: Los Angeles JEnter...
-
Write a program that prompts the user to enter two strings and reports whether the second string is a substring of the first string. Enter string sl: ABCD Enter string s2: BC substring of ABCD -...
-
Refer to Exercise 9. A device will be manufactured in which two of the components in Exercise 9 will be connected in series. The components function independently, and the device will function only...
-
In Exercises 49-52, sketch a plane. Then sketch the described situation. A plane perpendicular to the given plane
-
Trace the polygon and point P on paper. Then draw a rotation of the polygon the given number of degrees about P. 150 F P G
-
Trace the polygon and point P on paper. Then draw a rotation of the polygon the given number of degrees about P. 30 B C
-
The equation for the standard normal curve (the normal curve with mean 0 and standard deviation 1) graphs as an exponential curve. Graph this curve, whose equation is \[y=\frac{e^{-x^{2} /...
-
Design an undirected network with N=7 and L=12. Based on how you drew your network, classify it as either fully connected ,random, or scale-free. Justify your decision with a short paragraph response.
-
Three days before their marriage, Donna Rinvelt and Arnold Rinvelt signed a prenuptial agreement drafted by the latters attorney. The document stated that each party would keep all rights in their...
-
Which one of the following anhydrous chloride is not obtained on direct heating of its hydrated chloride? (A) BaCl2 (B) CaClz (C) MgCl2 (D) SrCl2
-
Since T is implemented using a list in the getMinimumSpanningTree and getShortestPath methods in Listing 29.2, WeightedGraph.java, testing whether a vertex u is in T by invoking T.contains(u) takes...
-
An alternative version of the Dijkstra algorithm can be described as follows: The algorithm uses cost[v] to store the cost of a shortest path from vertex v to the source vertex s. cost[s] is 0....
-
EightQueens.java, to develop a parallel algorithm that finds all solutions for the Eight Queens problem. Launch eight subtasks, each of which places the queen in a different column in the first row.
-
Question 30 2 pts 30. The closing process is necessary in order to O A. ensure that net income or net loss and dividends for the period are closed to retained earnings, O B. calculate net income or...
-
1. How have small banks been fairing making profits vs. large banks? a. What might be causing this? b. Is there any other questions I should consider/further research?
-
If the auction of an IPO is oversubscribed, shares of the IPO are allocated pro-rata to all bidders. True False
Study smarter with the SolutionInn App