1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vitfil [10]
4 years ago
12

Python Homework

Engineering
1 answer:
DerKrebs [107]4 years ago
5 0

Answer:

  1. TAX_RATE = 0.20
  2. STANDARD_DEDUCTION = 10000.0
  3. DEPENDENT_DEDUCTION = 3000.0
  4. # Request the inputs
  5. grossIncome = float(input("Enter the gross income: "))
  6. numDependents = int(input("Enter the number of dependents: "))
  7. # Compute the income tax
  8. taxableIncome = grossIncome - STANDARD_DEDUCTION - \
  9. DEPENDENT_DEDUCTION * numDependents
  10. incomeTax = taxableIncome * TAX_RATE
  11. # Display the income tax
  12. print("The income tax is $" + str(round(incomeTax,2)))

Explanation:

We can use round function to enable the program to output number with two digits of precision.

The round function will take two inputs, which is the value intended to be rounded and the number of digits of precision. If we set 2 as second input, the round function will round the incomeTax to two decimal places. The round function has to be enclosed within the str function so that the rounded value will be converted to a string and joined with the another string to display the complete a sentence of income tax info.

You might be interested in
In crash tests, a shock absorber is used to slow the test car. The shock absorber consists of a piston with small holes that mov
Lesechka [4]

Answer:

The heat transferred to water equals 1600 kJ

Explanation:

By the conservation of energy we have

All the kinetic energy of the moving vehicle is converted into thermal energy

We know that kinetic energy of a object of mass 'm' moving with a speed of 'v' is given by

K.E=\frac{1}{2}mv^{2}

Thus

K.E_{car}=\frac{1}{2}\times 2000\times 40^{2}=1600\times 10^{3}Joules

Thus the heat transferred to water equals 1600kJ

3 0
3 years ago
You MUST overthink this answer!!! What is my favorite primary color GOOD EXPLANATIONS ONLY!!! (use my profile picture) USE THE C
Art [367]

Answer:

Blue

Explanation:

You want me to overthink it which is why I think the answer should be the most obvious and not the most complicated

3 0
3 years ago
Read 2 more answers
The distribution of SAT scores of all college-bound seniors taking the SAT in 2014 was approximately normal with mean μ=1497 and
Sav [38]

Answer:

1279

Explanation:

We have the mean u = 1497

Standard deviation sd = 322

We find the x distribution using 25%

P(Z<z) = 0.25

Z = -0.675

From here we use the formula for z score

X = z(sd) + u

X = -0.675*322 + 1497

X = -217.35 + 1497

X = 1279.6

Which is approximately 1279

So we conclude that the maximum sat scores in year 2014that meets with the requirements of this course is 1279

4 0
3 years ago
Calculate density, specific weight and weight of one litter of petrol having specific gravity 0.7
Kazeer [188]

Explanation:

mass=19kg

density=800kg/m³

volume=?

as we know that

density=mass/volume

density×volume=mass

volume=mass/density

putting the values

volume=19kg/800kg/m³

so volume=0.02375≈0.02m³

4 0
3 years ago
Calculate the molar volume of ammonia at 92oC and 310 bar. What phase is the ammonia in?
olya-2409 [2.1K]

Answer:

The ammonia is still in the gas phase

Explanation:

Given that 1 bar is approximately = 1 atm

From;

PV=nRT

P= 310 atm

V= the unknown

n= 1

R = 0.082atm LK-1mol-1

T = 92oC + 273 = 365 K

V= nRT/P

V= 1 * 0.082 * 365/310

V = 0.0965 L = 96.5 mL

molar mass of NH3 = 17 g/mol

Molar density of NH3 = 17g/ 96.5mL = 0.176g/mL

The ammonia is still in the gas phase

3 0
3 years ago
Other questions:
  • What are some basic research topics for writing a research paper for first-year software students?
    15·2 answers
  • Definition of permanent, semi permanent and temporary heat setting
    5·1 answer
  • Which of following unit cell has the smallest atomic packing factor? (a) BCC unit cell (b) FCC unit cell (c) SC unit cell (d) HC
    5·1 answer
  • I need unseen passage
    7·2 answers
  • Type the correct answer in the box. Spell all words correctly.
    11·1 answer
  • Create a plot of the force of static friction, fsfsf_s, versus the x component of the pulling force, FxFxF_x, for the experiment
    10·1 answer
  • Write an expression for the output voltage of an AC source that has an amplitude of 19 V and a frequency of 240 Hz. (Use the fol
    15·1 answer
  • When asked about favorite Thanksgiving leftovers, 9% of the people said turkey and 7100 said mashed potatoes. Which food is more
    7·1 answer
  • 52 points+Brainliest for correct answer
    9·1 answer
  • Relationship between civil engineering and geology​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!