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
gayaneshka [121]
3 years ago
13

Create a flowchart that describes the following algorithm and then write Python code to implement the algorithm. Write the Pytho

n code in a Python program file, NOT in the IDLE window. Include in your HW PDF document a photo of your flowchart and a screenshot of your program code. Also include in your HW PDF a screenshot of the output that appears in the IDLE window.

Engineering
1 answer:
Naya [18.7K]3 years ago
3 0

Answer:

<em>Python code is as follows: </em>

********************************************************************************

#function to get number up to any number of decimal places

def toFixed(value, digits):

return "%.*f" % (digits, value)

print("Enter the price: ", end='', flush=True) #prompt for the input of price

price = float(input()) #taken input

totalCost = price + 0.05 * price #calculating cost

print("Total Cost after the sales tax of 5% is applied: " + toFixed(totalCost,2)) #print and output totalCost

************************************************************************************

You might be interested in
For the following conditions determine whether a CMFR or a PFR is more efficient in removing a reactive compound from the waste
andrew11 [14]

Answer:

The PFR is more efficient in the removal of the reactive compound as it has the higher conversion ratio.

Xₚբᵣ = 0.632

X꜀ₘբᵣ = 0.5

Xₚբᵣ > X꜀ₘբᵣ

Explanation:

From the reaction rate coefficient, it is evident the reaction is a first order reaction

Performance equation for a CMFR for a first order reaction is

kτ = (X)/(1 - X)

k = reaction rate constant = 0.05 /day

τ = Time constant or holding time = V/F₀

V = volume of reactor = 280 m³

F₀ = Flowrate into the reactor = 14 m³/day

X = conversion

k(V/F₀) = (X)/(1 - X)

0.05 × (280/14) = X/(1 - X)

1 = X/(1 - X)

X = 1 - X

2X = 1

X = 1/2 = 0.5

For the PFR

Performance equation for a first order reaction is given by

kτ = In [1/(1 - X)]

The parameters are the same as above,

0.05 × (280/14) = In (1/(1-X)

1 = In (1/(1-X))

e = 1/(1 - X)

2.718 = 1/(1 - X)

1 - X = 1/2.718

1 - X = 0.3679

X = 1 - 0.3679

X = 0.632

The PFR is evidently more efficient in the removal of the reactive compound as it has the higher conversion ratio.

3 0
3 years ago
What is the perimeter of 14-7 and 3-4
Goshia [24]

Answer:

If you mean two sides are 7 and two sides are 14 then you'd have 42

and for the second you'd have 14

Explanation:

7 + 7 = 14, 14 + 14 = 28, 14 + 28 = 42

3 + 3 = 6, 4 + 4 = 8, 8 + 6 = 14

5 0
3 years ago
A cylindrical drill with radius 4 is used to bore a hole through the center of a sphere of radius 5. Find the volume of the ring
ANTONII [103]

Answer:

The volume of the ring shaped solid that remains is 21 unit^3.

Explanation:

The total volume of the sphere is given as:

Volume of Sphere = (4/3)πr^3

where, r = radius of sphere

Volume of Sphere = (4/3)(π)(5)^3

Volume of Sphere = 523.6 unit^3

Now, we find the volume of sphere removed by the drill:

Volume removed = (Cross-sectional Area of drill)(Diameter of Sphere)

Volume removed = (πr²)(D)

where, r = radius of drill = 4

D = diameter of sphere = 2*5 = 10

Therefore,

Volume removed = (π)(4)²(10)

Volume removed = 502.6 unit^3

Therefore, the volume of ring shaped solid that remains will be the difference between the total volume of sphere, and the volume removed.

Volume of Ring = Volume of Sphere - Volume removed

Volume of Ring = 523.6 - 502.6

<u>Volume of Ring = 21 unit^3</u>

5 0
3 years ago
How engineer can find problems and solutions <br><br><br> Give example
Mademuasel [1]

Answer:

They find problems and solutions by working together

Explanation:

4 0
2 years ago
2. Determine the surface area of a primary settling tank sized to handle a maximum hourly flow of 0.570 m3/s at an overflow rate
Hitman42 [59]

Answer:

The surface area of the primary settling tank is 0.0095 m^2.

The effective theoretical detention time is 0.05 s.

Explanation:

The surface area of the tank is calculated by dividing the volumetric flow rate by the overflow rate.

Volumetric flow rate = 0.570 m^3/s

Overflow rate = 60 m/s

Surface area = 0.570 m^3/s ÷ 60 m/s = 0.0095 m^2

Detention time is calculated by dividing the volume of the tank by the its volumetric flow rate

Volume of the tank = surface area × depth = 0.0095 m^2 × 3 m = 0.0285 m^3

Detention time = 0.0285 m^3 ÷ 0.570 m^3/s = 0.05 s

7 0
3 years ago
Read 2 more answers
Other questions:
  • Single point cutting tool removes material from a rotating work piece to generate a cylinder is called • Facing Tuming • Both 1
    6·1 answer
  • What instrument is used to measure temperature?
    10·1 answer
  • Consider the following incomplete code segment, which is intended to print the sum of the digits in num. For example, when num i
    8·1 answer
  • An analog baseband audio signal with a bandwidth of 4kHz is transmitted through a transmission channel with additive white noise
    14·1 answer
  • The technique of smoothing out joint compound on either side of a joint is known as which of the following
    14·1 answer
  • Describe in your own words the three strengthening mechanisms
    7·1 answer
  • Glyphicons is mainly used for​
    12·1 answer
  • When bending metal, the material on the outside of the curve stretches while the material on the inside of the curve compresses.
    14·1 answer
  • How many hours should I charge a 4.8v 600mah battery (I need it by today please)
    13·1 answer
  • A 46.0-g meter stick is balanced at its midpoint (50.0 cm, zero point is a left end of stick). Then a 210.0-g weight is hung wit
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!