Answer:
- TAX_RATE = 0.20
- STANDARD_DEDUCTION = 10000.0
- DEPENDENT_DEDUCTION = 3000.0
-
- # Request the inputs
- grossIncome = float(input("Enter the gross income: "))
- numDependents = int(input("Enter the number of dependents: "))
-
- # Compute the income tax
- taxableIncome = grossIncome - STANDARD_DEDUCTION - \
- DEPENDENT_DEDUCTION * numDependents
- incomeTax = taxableIncome * TAX_RATE
-
- # Display the income tax
- 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.
Answer:
design angle ∅ = 4.9968 ≈ 5⁰
Explanation:
First calculate the force Fac :
Fac = 
= 
= 708.72 Ib
using the sine law to determine the design angle

hence ∅ = 
=
= 4.9968 ≈ 5⁰
.......,.,.,.,.,.,,.,.,,.,.,.,.,.,.,.,,.,.,,.,,,.,,.,,.,.,.,.,,............,,,,,,’mmdjidvdhxxkf jkkk he in d
Answer: Option D is not true of hydraulic valves. A hydraulic valve is a device that can change the opening degree of liquid flow path
Explanation:
The pilot check valve allows flow of liquid in one direction and blocks flow in the opposite direction
Answer:
v₀ = 2,562 m / s = 9.2 km/h
Explanation:
To solve this problem let's use Newton's second law
F = m a = m dv / dt = m dv / dx dx / dt = m dv / dx v
F dx = m v dv
We replace and integrate
-β ∫ x³ dx = m ∫ v dv
β x⁴/ 4 = m v² / 2
We evaluate between the lower (initial) integration limits v = v₀, x = 0 and upper limit v = 0 x = x_max
-β (0- x_max⁴) / 4 = ½ m (v₀²2 - 0)
x_max⁴ = 2 m /β v₀²
Let's look for the speed that the train can have for maximum compression
x_max = 20 cm = 0.20 m
v₀ =√(β/2m) x_max²
Let's calculate
v₀ = √(640 106/2 7.8 104) 0.20²
v₀ = 64.05 0.04
v₀ = 2,562 m / s
v₀ = 2,562 m / s (1lm / 1000m) (3600s / 1h)
v₀ = 9.2 km / h