Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help with this question for python. examples included thanks! Write a Python 3 program called yearlywage.py that calculates the yearly wage given the hourly
need help with this question for python. examples included thanks!
Write a Python 3 program called yearlywage.py that calculates the yearly wage given the hourly wage and hours worked daily. Specifically, your program need to 1. ask the user to input from the keyboard for two inputs, one is the hours worked daily and the other is the hourly wage 2. calculate the yearly wage given the two inputs - Note that the working hours is daily. Assume the user works every day during the entire year ( 365 days) and the same amount of time every day. - The two input numbers are not necessarily integers. - It would help to first write down the mathematical formula needed to calculate the yearly wage 3. output the yearly wage Example Here are the screenshots after nunning some examples. Your messages do not need to say the exact same thing. but they should be informative and readab Example 1: User enters 2 and 200. The calculated yearly wage is 146000 = RESTART: /Users/jiamingjiang/Documents/INF0TC1040 -Spring 2023/ homework/homework03/yearlyWage.py Enter the number of hours daily: 2 Enter the hourly wage: 200 Yearly wage =146000.0 Here are the screenshots after running some examples. Your messages do not need to say the exact same thing. but they should be informative and Example 1: User enters 2 and 200. The calculated yearly wage is 146000 . = RESTART: /Users/jiamingjiang/Documents/INFOTC1040 -Spring2023/hemework/homework03/yearlyWage.py Enter the number of hours daily: 2 Enter the hourly wage: 200 Yearly wage =146000.0 Example 2: User enters 8 and 10. The calculated vearly wage is 29200 , = RESTART: /Users /j jamingjiang/Documents/INFOTC1040 -Spring2023/homework/homework03/yearlywage.py Enter the number of hours daily: 8 Enter the hourly wage: 10 Yearly wage =29200.0 Example 3: User enters 9.3 and 6.5. The calculated yearly wage is 22064.25. (Due to how floats are implemented in the hardware. you might see the 0000000004 at the end. That's ok.) = RESTART: /Users/jiamingjiang/Documents/INFOTC 1040 -Spring2023/hpmework/homework03/yearlyWage. py Enter the number of hours daily: 9.3 Enter the hourly wage: 6.5 Yearly wage =22064.250000000004 Testing Once you have written your program you need to test it. Choose values for inputs and get the result the program generates. Then, outside of the program calculator or hand calculation verify that the result is correct. Do this for several sets of input values. If you don't get the same answer, figure out why and Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started