Answer:
TAX_RATE = 0.20
STANDART_DEDUCTION = 10000.0
DEPENDENT_DEDUCTION = 3000.0
gross_income = float(input("Enter the gross income: "))
number_of_dependents = int(input("Enter the number of dependents: "))
income = gross_income - STANDART_DEDUCTION - (DEPENDENT_DEDUCTION * number_of_dependents)
tax = income * TAX_RATE
print ("The income tax is $" + str(round(tax, 2)))
Explanation:
Define the <em>constants</em>
Ask user to enter the <em>gross income</em> and <em>number of dependents</em>
Calculate the <em>income</em> using formula (income = gross_income - STANDART_DEDUCTION - (DEPENDENT_DEDUCTION * number_of_dependents))
Calculate the <em>tax</em>
Print the <em>tax</em>
<em />
round(number, number of digits) -> This is the general usage of the <em>round</em> function in Python.
Since we need <u>two digits of precision</u>, we need to modify the program as str(<u>round(incomeTax, 2</u>)).
Answer:
The answer to this question is given below in the explanation section.
Explanation:
You can find a single number or name in a large worksheet containing thousands of numbers and names using the find and replacement feature in excel.
You can use Ctrl+F keyboard shortcut for finding and replacing features. When you press Ctrl+F, a dialog will get open, using this dialog, you can find the required number or name while entering in the search text box. Then, click on the Find button, if the worksheet matches the result, give you the matched result in the yellow highlighted color.
Also, you can use Ctrl+F to replace a name or number with some other name or number.
Alternatively, you can do this using the home tab, then find the option find and select under the editing group of commands.
Answer:
Runtime error probably. The program won't make it past the while loop in the code.
Answer:
words = ['is', 'NLP', 'fun', '?']
tmp = words[1]
words[1] = words[0]
words[0] = tmp
words[3] = '!'
print(words)
Explanation:
- Create the list
- Assign the new values using <em>tmp</em> variable
- Print the result
Since tuples in Python are unchangeable, you cannot transform the list using tuple assignment.
The biggest security issue with using social networking sites to market your listings is Criminals may use social networking sites to identify your personal data.
<h3>What is a social marketing site?</h3>
A social marketing site is a site where people from around the world are connected in one place and share their thoughts and photos and other data.
The social sites are on the internet and there is a chance of stealing data and it identity theft, phishing, online predators, internet fraud, and other cybercriminal attacks are also some risks.
Thus, the largest security concern with using social networking sites to sell your listings is that thieves could use these sites to find personal information about you.
To learn more about social marketing sites, refer to the link:
brainly.com/question/15051868
#SPJ4