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
lubasha [3.4K]
4 years ago
11

Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is pai

d for with a minimum amount of change and just single dollars, write an expression for the number of single dollars that would have to be paid. python
Engineering
1 answer:
Svet_ta [14]4 years ago
5 0

Answer:

  1. price = 380
  2. dollar = (price // 100) + 1
  3. print(dollar)

Explanation:

Presume the an item cost 380 cents and we set 380 to the variable price (Line 1). To estimate the number of single dollars to be paid, we can use // operator to divide price by 100 and we will get 3 (the remaining decimal point will be discarded). Then we add 3 by one. So the expression is

(price//100) + 1

*The reason we divide price by 100 is because 1 dollar = 100 cents

You might be interested in
An overhead 25m long, uninsulated industrial steam pipe of 100mm diameter is routed through a building whose walls and air are a
DedPeter [7]

Answer:

a) he rate of heat loss from the steam line is 18.413588 kW

b) the annual cost of heat loss from line is $12904.25

Explanation:

a)

first we find the area

A = πdL

d is the diameter (0.1m) and L is the length (25m)

so

A = π ×  0.1 × 25

A = 7.85 m²

Now rate of heat loss through convection

qconv = hA(Ts -Ta)

h is the convective heat transfer coefficient (10 W/m²K), Ts is surface temperature (150°), Ta is temperature of air (25°)

so we substitute

qconv = 10 W/m²K × 7.85 m² × ( 150° - 25°)

qconv = 9817.477 J/s

Now heat lost through radiation

qrad = ∈Aα ( Ts⁴ - Ta⁴)

∈ is the emissivity (0.8), α is the boltzmann constant ( 5.67×10⁻⁸m⁻²K⁻⁴ ),

first we shall covert our temperatures from Celsius to kelvin scale

Ts is surface temperature (150 + 273K ), Ta is temperature of air (25 + 273K)

so we substitute

qrad = 0.8 × 7.854 × 5.67×10⁻⁸ × ( (423)⁴ - (298)⁴ )

qrad = 3.5625×10⁻⁷ × 2.413×10¹⁰

qrad = 8596.112 J/s

Now to get the total rate of heat loss through convection and radiation, we say

q = qconv + qrad

q = 9817.477 + 8596.112

q = 18413.588 J/s ≈ 18.413588 kW

Therefore the rate of heat loss from the steam line is 18.413588 kW

b)

annual cost of heat lost rate

A = C × q/n × ( 3600 × 24 × 365 )

C is the cost of heat per MJ( $0.02/10⁶) n is broiler efficiency ( 0.9)

so we substitute

A = 0.02/10⁶  × 18413.588/0.9 × ( 3600 × 24 × 365 )

A = $12904.25

Therefore the annual cost of heat loss from line is $12904.25

4 0
3 years ago
An inside measurement can be taken with a tape measure by:
elena-14-01-66 [18.8K]

Answer:

Adding the length of the tape measure case.

6 0
2 years ago
Vacancy diffusion statement refer to that a mechanism that
belka [17]

Answer:

true

Explanation:

4 0
3 years ago
Most fatal collisions in Florida happen during
JulsSmile [24]
Friday and Saturday night
6 0
3 years ago
Read 2 more answers
A large water jet with a discharge of 2m^3 /s rises 90m above the ground. The exit nozzle diameter to achieve this must be. (a)
Bess [88]

Answer:

The correct answer is option 'a': 0.046 meters.

Explanation:

We know that the exit velocity of a jet of water is given by Torricelli's law as

v=\sqrt{2gh}

where

'v' is velocity of head

'g' is acceleration due to gravity

'h' is the head under which the jet falls

Now since the jet rises to a head of 90 meters above ground thus from conservation of energy principle it must have fallen through a head of 90 meters.

Applying the values in above equation we get the exit velocity as

v=\sqrt{2\times 9.81\times 90}=42.02m/s

now we know the relation between discharge and velocity as dictated by contuinity equation is

Q=V\times Area

Applying values in the above equation and solving for area we get

Area=\frac{Q}{v}=\frac{2}{42.02}=0.0476m^{2}

The circular area is related to diameter as

Area=\frac{\pi D^{2}}{4}\\\\\therefore D=\sqrt{\frac{4\cdot A}{\pi }}=\sqrt{\frac{4\times 0.0476}{\pi }}=0.246m

Thus the diameter of the nozzle is 0.246 meters

7 0
3 years ago
Other questions:
  • 2. In the above figure, what type of cylinder arrangement is shown in the figure above?
    9·1 answer
  • For each topic, find the total number of blurts that were analyzed as being related to the topic. Order the result by topic id.
    6·1 answer
  • Several different loads are going to be used with the voltage divider from Part A. If the load resistances are 300 kΩkΩ , 200 kΩ
    7·1 answer
  • The melting point of Pb (lead) is 327°C, is the processing at 20°C hot working or cold working?
    6·1 answer
  • An AC circuit has a resistor, capacitor and inductor in series with a 120 V, 60 Hz voltage source. The resistance of the resisto
    12·1 answer
  • Plis 3 conclusiones de este video
    15·1 answer
  • Select the correct text in the passage.
    6·2 answers
  • (SI units) Molten metal is poured into the pouring cup of a sand mold at a steady rate of 400 cm3/s. The molten metal overflows
    9·1 answer
  • Damage reports should contain the information needed for what?
    8·1 answer
  • The suction line maintains a gradual slope downward from the evaporator to the compressor in order to _____.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!