What's wrong here? This program is supposed to show employees how much they will earn for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What's wrong here? This program is supposed to show employees how much they will earn for working anywhere between 20 and 40 hours a week for a given hourly wage, but it doesn't display anything except the heading. hourlyWage = input("Tell me your hourly wage: ") print ("Wage Report") for hoursWorked in range (40, 20, 1): wage float (hourlyWage) * float (hoursWorked) print (str (hoursWorked)) print (str (hourlyWage)) print(str (wage)) What's wrong here? This program is supposed to show employees how much they will earn for working anywhere between 20 and 40 hours a week for a given hourly wage, but it doesn't display anything except the heading. hourlyWage = input("Tell me your hourly wage: ") print ("Wage Report") for hoursWorked in range (40, 20, 1): wage float (hourlyWage) * float (hoursWorked) print (str (hoursWorked)) print (str (hourlyWage)) print(str (wage))
Expert Answer:
Answer rating: 100% (QA)
Answer Heres the corrected version of the program hourlyWage floatinputTell me ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
What is unrealistic about the domino fault model?
-
On January 1, 2017, Phantom Corp. acquires $300,000 of Spider Products, Inc. 9% bonds at a price of $278,384. The interest is payable each December 31, and the bonds mature on December 31, 2019. The...
-
When a dart is thrown at a circular target, consider the location of the landing point relative to the bull's eye. Let X be the angle in degrees measured from the horizontal, and assume that X is...
-
Washington Tennis & Education Foundation, Inc. (WTEF) is a nonprofit organization operating in the District of Columbia that provides athletic and academic programs for children from low-income...
-
Zeigler Manufacturing Company purchased a robot for $720,000 at the beginning of year 1. The robot has an estimated useful life of four years and an estimated residual value of $60,000. The robot,...
-
Suppose that both players discount future payoffs with the same discount factor ? < 1. Suppose that both players play the "Cooperative Strategy;" namely, they play C in every period, no matter what...
-
A store warehouses 42 more portables than big-screen TV sets, and 15 more consoles than big-screen sets. Storage costs for the different TV sets are shown in the table. If storage costs $331 per...
-
Connecting various links to a corporation's online personality can be accomplished using what?
-
A Corp. had 40,000 common shares outstanding on January 1, 2023. On May 1, 2023, the company issued 20,000 more common shares. It has no preferred shares outstanding. For the year ended December 31,...
-
You are asked to design a flow control valve for vertical application as shown in the figure. The conical plug is going to act as the valve. Fy=mg B d The vertical air jet has a diameter of 60 mm....
-
Discuss with examples the role of management compensation in financial reporting choices.
-
Descriptions of an agreement and determine whether it must be in writing to be an enforceable contract. If the agreement must be in writing, drag the statement into the box designated Writing...
-
Beacon Company is considering automating its production facility. The initial investment in automation would be $7.17 million, and the equipment has a useful life of 6 years with a residual value of...
-
If the joint cost function for two products is C(x, y) = xy2 + 1 dollars (a) Find the marginal cost (function) with respect to x. (b) Find the marginal cost with respect to y.
-
____ describes how many peaks exist in a frequency distribution.
-
Sample values of variance and standard deviation are ____ so they are better approximations of the ____ values.
-
The chi-square yielded statistically significant results. Given the information below, determine the direction of the difference: Observed Frequencies Outcome A Outcome B Group I 12 19 Group II 17 9....
-
Portugal has a progressive personal income tax system. In 2016, tax rates on taxable income were \(14.5 \%\) on the first \( 7,035,21 \%\) on the next \( 13,065,37 \%\) on the next \( 20,100,45 \%\)...
-
In its 2016 International Tax Competitiveness Index report, the U.S.-based Tax Foundation ranked Estonia as having the most competitive tax system in the OECD, based in part on its \(20 \%\) flat tax...
-
A lump-sum tax is a fixed amount of tax per person. If a lump-sum tax, \(T\), raises the same amount of revenue for the government as a tax on earnings at the rate, \(t\), then \(t w H=T\), where...
Study smarter with the SolutionInn App