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: 77% (9 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.
-
You are designing a process for a wastewater treatment facility intended to remove aqueous HCl from the input water. Several bases are being considered for use, and their costs are listed in the...
-
Use the same facts as problem 20 and prepare entries using the following independent assumptions: a. Lease A is abandoned in 2022. b. Lease A is proved in 2022. c. Insignificant Lease Y, with a cost...
-
Refer to Exhibit 2-11 on page 65. Required a. What is Universal Sports Exchange's operating profit equation? b. If Universal Sports Exchange sells 55,000 jerseys, what total expense will be reported...
-
Develop an algorithm, in the form of a Raptor flowchart, to compute and display the amount of federal income tax to be paid when provided with the income as input. The Canadian Federal income tax...
-
Determine vo and the required PIV rating of each diode for the configuration of Fig. 2.168. 100 V Ideal diodes -100 V 2.2 k
-
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 -...
-
You know that silver chloride is not very soluble in water, but what do you know about its solubility in seawater? You decide to investigate the solubility of silver chloride in solutions with...
-
Could you elucidate the procedure involved in handling device interrupts within the context of computer systems, employing advanced terminology?
-
Summarize Applicable Section 1245 and 1250 Recapture with some detailed explanations exactly what is it and what does it talk about.?
-
Your company is considering the purchase of a new machine for production The following numbers show the various cost required Annual reduction in scrap Cost of new machine Cost of new software Labor...
-
Pink Corporation is engaged in the sale of goods and services with net sales and net revenues of P 2,000,000 and P 1,000,000, respectively. The actual expense for the taxable year totaled P30,000....
-
Question 3 It is common for provincial governments to justify subsidies to the tourist sector (or any other sector, for that matter) based on the argument that jobs will be created, and the...
-
The following data are from financial statements of Stuart Inc. for the fiscal year ended March 1, 2017 (in millions): Requirements 1. Prepare a statement of cash flows for the fiscal year ended...
-
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.
-
Problem 2: Consider the following sequential pseudo-code segment, in which n 1 is an integer. for i 0 ton do oin Compute function f(i) end (25 points) Suppose that computing f(i) needs t(i) time,...
-
Solve. 6x +5x=21 D X = (Simplify your answer. Type an exact answer, using radicals as needed. Express numbers in terms of i. Use a comma to separate answers as needed.)
-
9. The Robinson family owns a 3-bedroom condo. Both parents work full time. Mr. Robinson's yearly income is $43 000 and Mrs. Robinson's yearly income is $47 000. Below are the expenses that the...
Study smarter with the SolutionInn App