Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task in this programming assignment is to write a simple Python program that prompts the user to enter their name, their gross ammal income,
Your task in this programming assignment is to write a simple Python program that prompts the user to enter their name, their gross ammal income, their percentage tax rate, and then prints out their net annual income based on that input. A sample run is shown below with the user input in red: Please enter your name:Dan Druff Hello Dan Druff, What is your gross annual income?100000 What is the percentage tax rate in your location?40 Well Dan Druff, that means that your net income is $60000.0 Here's output of another sample run (again, user input is shown in bold red): Please enter your name:Amanda Lynn Hello Amanda Lynn, What is your gross annual income?45000 What is the percentage tax rate in your location?32.5 Well Amanda Lynn, that means that your net income is $30375.0 To help clarify, here are some specifics and/or constraints: (1) Every execution of your code should allow the user to type- in potentially different names. salaries, and tax percentages and should produce mathematically correct results each time. (2) Your output should look exactly like the sample runs shown above i.e. sentence structure and formatting. Actual input values and calculations will of course differ depending inputs provided by the user during an execution; (3) You must include a meaningful header, use good coding style, use meaningful variable names, and comment your source code where appropriate; (4) You must use the provided source code template (which already contains helpful comments); and (5) You must submit your source code as a single py file
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