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
Piping layout carrying liquid water at 70°F at a volumetric flow rate of 0.2 is composed of four sections of 4-in. Diameter stee
horrorfan [7]

Answer:I have no clue if you find out let me know

Explanation:

7 0
3 years ago
Two routes connect an origin and a destination. Routes 1 and 2 have performance functions t1 = 2 + X1 and t2 = 1 + X2, where the
Musya8 [376]

Solution :

Given

$t_1=2+x_1$

$t_2=1+x_2$

Now,

$P(h

$0.4=1-P(h \geq5)$

$0.6=P(h \geq5)$

$0.6= e^{\frac{-x_1 5}{3600}}$

Therefore,   $x_1=368 \ veh/h$

                        $=\frac{368}{1000} = 0.368$

Given,   $t_1=2+x_1$

                 = 2 + 0.368

                 = 2.368 min

At user equilibrium, $t_2=t_1$

∴  $t_2$ = 2.368 min

$t_2=1+x_2$

$2.368=1+x_2$

$x_2 = 1.368$

$x_2 = 1.368 \times 1000$

    = 1368 veh/h

7 0
3 years ago
Holmes owns two suits: one black and one tweed. He always wears either a tweed suit or sandals. Whenever he wears his tweed suit
vazorg [7]

Answer:

He wore his black suit, another color of shirt (not purple) and shoes

Explanation:

Holmes owns two suits: one black and one tweed.

Whenever he wears his tweed suit and a purple shirt, he chooses not to wear a tie and whenever he wears sandals, he always wears a purple shirt.

So, if he wore a bow tie yesterday, it means he wore his black suit, another color of shirt (not purple) and shoes because the shirt color is not purple

4 0
3 years ago
Leland wants to work in a Production career operating heavy machinery. Which type of education or training should Leland seek?
zhenek [66]

Answer:

it is indeed C

Explanation:

4 0
3 years ago
Read 2 more answers
Machine movement can be divided into what two main categories?
pishuonlain [190]

Answer:

motion and power

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Question 5
    7·2 answers
  • Compare the tensile load capacity of a 5/16-18 UNC thread and a 5/16-24 UNF thread made of the same material.
    6·1 answer
  • Generally natural shape of stone is in shaped as (a)angular (b)irregular (c)cubical cone shape (d)regular
    10·2 answers
  • For the following three (3) questions, assume that the link layer uses the flag bytes with byte stuffing approach for framing, w
    15·1 answer
  • Question 3 (5 points)
    7·1 answer
  • 2.44mW of incident 520 nm light is directed through a1 cm sample cuvette and 0.68 mW of Plight exits the sample what is the abso
    9·1 answer
  • What is government role in the modern American version of capitalism
    11·1 answer
  • When was solar power envold ​
    8·2 answers
  • What do you mean by overflow and underflow error in array?.
    11·1 answer
  • QUICK ASAP!!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!