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
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
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
The toggle (t) flip-flop has one input, clk, and one output, q. on each rising edge of clk, q toggles to the complement of its p
jeyben [28]

Answer:

  See attached

Explanation:

The next state of a toggle flip-flop is the inverse of the present state. This behavior can be produced using a D flip-flop that has its input connected to the inverse of its output.

__

A schematic is attached.

7 0
2 years ago
What is the fastest motorcycle in the world ?
givi [52]

Answer:

Kawasaki Ninja H2R – top speed: 222 mph. This one is another beast in the form of a bike. ...

MTT Turbine Superbike Y2K – top speed: 227 mph. This bike is one of the most powerful production motorcycles. ...

Suzuki Hayabusa – top speed: 248 mph. 1340cc

8 0
3 years ago
Read 2 more answers
Answer ppeeeeeaaaalll
Bad White [126]

Answer:

what

Explanation:

is this an exam or an test or what is it

3 0
2 years ago
Other questions:
  • What is pessimism technology
    12·1 answer
  • Model the real world idea of an Address. 123 Main Street Apt #2 Small Town, Iowa 55555 USA Write a class called Address, follow
    11·1 answer
  • At the grocery store you place a pumpkin with a mass of 12.5 lb on the produce spring scale. The spring in the scale operates su
    5·1 answer
  • When a user process is interrupted or causes a processor exception, the x86 hardware switches the stack pointer to a kernel stac
    13·1 answer
  • Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print
    10·1 answer
  • Consider a sphere made of stainless steel with diameter of 25 cm. It is heated to temperature of 300°C for some chemical tests.
    12·1 answer
  • A Carnot heat engine absorbs 235 KW of heat from a heat source and rejects 164 KW to the atmosphere. Determine the thermal effic
    7·1 answer
  • How is the air delivery temperature controlled during A/C operation?
    8·1 answer
  • Multiple Choice
    7·1 answer
  • This might count as engineering, I'm not sure as this is IT
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!