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
The creation of designer drugs is outpacing the ability of society to enact laws to prohibit them. Many of these substances have
Andreas93 [3]

Answer:

The creation of "designer drugs" is outpacing the ability of society to enact laws to prohibit them.  Many of these substances have negative side effects, ranging from violent behavior to death.

 

40.  Which of the following responses to the problem would best fit the "crime control" philosophy?

a.  Government takes steps to limit the availability of ingredients used in the manufacture of designer drugs.

b.  Design a public awareness campaign to warn potential users of the dangers presented by use of these drugs.

c.  Partner with community leaders to identify underlying social issues promoting the drug subculture.

d.  Pass legislation and increase enforcement efforts to send a message of "zero tolerance" to those who manufacture, sell, and use designer drugs

The answer to the above question is

d.  Pass legislation and increase enforcement efforts to send a message of "zero tolerance" to those who manufacture, sell, and use designer drugs

Explanation:

State governments, naturally provide early response to the domestic issue of designer drug abuse than the federal government through the early banning of synthetic drug use.

State legislation on restricting designer drug use can be defined into three groups including

1. Specific synthetic substance ban

2. Ban on generic language

3. Ban based on the effect a substance has on the body.

It can be clearly demonstrated that legislation which combines this three categories is highly effective in reducing the supply and use of designer drugs.

3 0
3 years ago
The driveshaft of an automobile is being designed to transmit 238 hp at 3710 rpm. Determine the minimum diameter d required for
AURORKA [14]

Explanation:

Below is an attachment containing the solution.

4 0
3 years ago
The uniform crate has a mass of 50 kg and rests on the cart having an inclined surface. Determine the smallest acceleration that
Lostsunrise [7]

Answer: smallest will be 000,.111 84.

Explanation:

5 0
3 years ago
1.The moist unit weights and degrees of saturation of a soil are given: moist unit weight (1) = 16.62 kN/m^3, degree of saturati
alexandr1967 [171]

Answer:

Gs = 2.647

e = 0.7986

Explanation:

We know that moist unit weight of soil is given as

\gamma_m \ or\ bulk\ density = \frac{(Gs+Se)\times \gamma_w}{(1+e)}

where,  \gamma_m = moist unit weight of the soil

Gs = specific gravity of the soil

S = degree of saturation

e = void ratio

\gamma_w = unit weight of water = 9.81 kN/m3

From data given we know that:

At 50% saturation,\gamma_m = 16.62 kN/m3

puttng all value to get Gs value;

16.62= \frac{(Gs+0.5*e)\timees 9.81}{(1+e)}

Gs - 1.194*e = 1.694 .........(1)

for saturaion 75%, unit weight = 17.71 KN/m3

17.71 = \frac{(Gs+0.75*e)\times 9.81}{(1+e)}

Gs - 1.055*e = 1.805 .........(2)

solving both  equations (1) and (2), we obtained;

Gs = 2.647

e = 0.7986

6 0
3 years ago
Why do you suppose a value of 5 is used? Do you think other values might work?
Shtirlitz [24]

Answer:

YES

Explanation:

values other than five will work

3 0
2 years ago
Other questions:
  • Explain the purpose of the checkpoint mechanism. How often should checkpoints be performed?How does the frequency of checkpoints
    6·1 answer
  • Select all that apply.
    13·1 answer
  • Consider the fully developed flow of glycerin at 40°C through a 60-m-long, 4-cm-diameter, horizontal, circular pipe. If the flow
    15·1 answer
  • 1. A fixed-geometry supersonic inlet starts at a Mach number of 3. After starting, the cruise Mach number is 2, and the operatin
    13·1 answer
  • A steel wire of diameter 2.000 mm and length 1.000 m is attached between two immovable supports.When the temperature is 60.00 Ce
    9·1 answer
  • 2- A 2-m3 insulated tank containing ammonia at -20 C, 80% quality, is connected by a valve to a line flowing ammonia at 2 MPa, 6
    14·1 answer
  • Air enters a compressor operating at steady state at 1.05 bar, 300 K, with a volumetric flow rate of 21 m3/min and exits at 12 b
    11·1 answer
  • Estimate the maximum expected thermal conductivity for a Cermet that contains 58 vol% titanium carbide (TiC) particles in a coba
    8·1 answer
  • A lightbulb has a fixed negative and positive connector. You cannot swap positive and negative sides of a lightbulb in a circuit
    9·2 answers
  • Write a paragraph on computer 473
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!