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
You are given a collection of n bottles of different widths and n lids of different widths and you need to find which lid goes w
Sladkaya [172]

Answer:

void bubble_sort( int A[ ], int n ) {

     int temp;

     for(int k = 0; k< n-1; k++) {

          // (n-k-1) to ignore comparisons of already compared iterations

         for(int i = 0; i < n-k-1; i++) {

                 if(A[ i ] > A[ i+1] ) {

                      // swapping occurs here

                      temp = A[ i ];

                      A[ i ] = A[ i+1 ];

                      A[ i + 1] = temp ;

                  }

          }

    }

}

5 0
3 years ago
Technician A says that weld-on dent removal attachments may be used on a steel panel.
spin [16.1K]

Answer:

sjasfjajfhajshfdff

Explanation:

7 0
3 years ago
A cylindrical rod 100 mm long and having a diameter of 10.0 mm is to be deformed using a tensile load of 27,500 N. It must not e
mash [69]

Answer:

The steel is a candidate.

Explanation:

Given

P = 27,500 N

d₀ = 10.0 mm = 0.01 m

Δd = 7.5×10 ⁻³ mm (maximum value)

This problem asks that we assess the four alloys relative to the two criteria presented. The first  criterion is that the material not experience plastic deformation when the tensile load of 27,500 N is  applied; this means that the stress corresponding to this load not exceed the yield strength of the material.

Upon computing the stress

σ = P/A₀ ⇒ σ = P/(π*d₀²/4) = 27,500 N/(π*(0.01 m)²/4) = 350*10⁶ N/m²

⇒ σ = 350 MPa

Of the alloys listed, the Ti and steel alloys have yield strengths greater than 350 MPa.

Relative to the second criterion, (i.e., that Δd be less than 7.5 × 10 ⁻³  mm), it is necessary to  calculate the change in diameter Δd for these four alloys.

Then we use the equation   υ = - εx / εz = - (Δd/d₀)/(σ/E)

⇒  υ = - (E*Δd)/(σ*d₀)

Now, solving for ∆d from this expression,

∆d = - υ*σ*d₀/E

For the Aluminum alloy

∆d = - (0.33)*(350 MPa)*(10 mm)/(70*10³MPa) = - 0.0165 mm

0.0165 mm > 7.5×10 ⁻³ mm

Hence, the Aluminum alloy is not a candidate.

For the Brass alloy

∆d = - (0.34)*(350 MPa)*(10 mm)/(101*10³MPa) = - 0.0118 mm

0.0118 mm > 7.5×10 ⁻³ mm

Hence, the Brass alloy is not a candidate.

For the Steel alloy

∆d = - (0.3)*(350 MPa)*(10 mm)/(207*10³MPa) = - 0.005 mm

0.005 mm < 7.5×10 ⁻³ mm

Therefore, the steel is a candidate.

For the Titanium alloy

∆d = - (0.34)*(350 MPa)*(10 mm)/(107*10³MPa) = - 0.0111 mm

0.0111 mm > 7.5×10 ⁻³ mm

Hence, the Titanium alloy is not a candidate.

7 0
3 years ago
Technician A says that the most effective way to diagnose wheel speed sensor circuit faults is to utilize the live data function
Marianna [84]

Answer:

Both Technicians A & B are correct

Explanation:

In diagnosing wheel systems, both steps said by technicians A & B are correct because it's the normal procedure to diagnose wheel speed sensor circuit faults.

7 0
3 years ago
Relevance of engineering law and ethic in contemporary society​
baherus [9]

Answer:

Engineering law and ethics are the moral codes associated with the field in which engineers are meant to adhere strictly to.

These ethics help in the safety of the engineers as a result of wearing protective clothing being a part of the ethics . Accuracy should also be taken important in research and daily activities. Corrupt practices and activities which poses risk to the environment is also strictly prohibited.

7 0
4 years ago
Other questions:
  • Question about transformers and generators
    5·1 answer
  • Which construction material can workers erect at the fastest rate?
    11·2 answers
  • How do you measure 1/8 teaspoon if you<br> only have a 1/4 teaspoon?
    11·2 answers
  • Name the seven physical qualities for which standards have been developed.
    7·1 answer
  • Precast double-tee units are generally used as structural floors when:________.
    6·1 answer
  • The substance called olivine may have any composition between Mg2SiO4 and Fe2SiO4, i.e. the Mg atoms can be replaced by Fe atoms
    10·1 answer
  • Based on the following passage, why might the government use the U.S. Army Corps of Engineers to undertake hydroelectric power p
    14·1 answer
  • A wooden pallet carrying 540kg rests on a wooden floor. (a) a forklift driver decides to push it without lifting it.what force m
    10·1 answer
  • People tend to self-disclose to others that are in age, social status, religion, and personality.
    11·2 answers
  • Which best lists the careers that are part of the Science and Math career pathway?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!