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
We would like to measure the density (p) of an ideal gas. We know the ideal gas law provides p= , where P represents pressure, R
Nostrana [21]

Answer: =

Explanation:

=    P / (R * T) P- Pressure, R=287.058, T- temperature

From the given that

Sample mean(pressure) = 120300 Pa

Standard deviation (pressure) = 6600 Pa

Sample mean(temperature) = 340K

Standard deviation(temperature) = 8K

To calculate the Density;

Maximum pressure = Sample mean(pressure) + standard deviation (pressure) = 120300+6600 = 126900 Pa

Minimum pressure = Sample mean (pressure) - standard deviation (pressure)= 120300-6600 = 113700 Pa

Maximum temperature = Sample mean (temperature) + standard deviation (temperature) = 340+8 = 348K

Minimum temperature = Sample mean (temperature) - standerd deviation (temperature) = 340-8 = 332K

So now to calculate the density:

Maximum Density= Pressure (max)/(R*Temperature (min))= 126900/(287.058*332)= 1.331

Minimum density=Pressure(min)/(R*Temperature (max))= 113700/(287.058*348)= 1.138

Average density= (density (max)+ density (min))/2= (1.331+1.138)/2= 1.2345

cheers i hope this helps

5 0
3 years ago
The phrase "positive to positive, negative to ground" is correct when jump starting a car.
Artist 52 [7]

The correct answer is A; True.

Further Explanation:

This is a correct phrase that is important to learn when owning any type of vehicle. When a car battery is dead, it can usually be jump started by using another cars battery or a portable battery charger. It is extremely important to put the positive battery cable on the positive battery post. Then the negative cable will be placed on the negative car battery post and the negative ground wire can be anywhere on the car except on the battery.

The car needs to be connected properly for a few minutes before trying to start the car. This helps the car battery to get enough "juice" to start. If the battery cables are placed wrong this can cause sparks to come out of the cables/battery and cause bodily harm.

Learn more about car batteries at brainly.com/question/7734062

#LearnwithBrainly

7 0
3 years ago
If you stretch a rubber hose and pluck it, you can observe a pulse traveling up and down the hose. What happens to the speed of
stich3 [128]

Answer:

Explanation:if you stretch the hose more tightly the speed of the pulse will reduce..

5 0
3 years ago
5. Which of the following is false about onStep?
katovenus [111]

The false statement about onStep is: B. The default number of steps per second is 30.

<h3>What is an onStep?</h3>

An onStep can be defined as a computerized telescope goto controller that is designed and developed to <u>animate shapes</u> while using it on a variety of mounting systems such as forks.

<h3>The characteristics of an onStep.</h3>

In Engineering, some of the characteristics that are associated with an onStep include the following:

  • The onStep function can be called without user input.
  • It can be used to animate shapes without user input.
  • It only runs a certain number of times.

In conclusion, the default number of steps per second for onStep isn't 30.

Read more on onStep here: brainly.com/question/25619349

7 0
2 years ago
In your opinion...
ch4aika [34]

Answer:no

TTHANLS FOR FREE POINTS

Explanation:

8 0
2 years ago
Other questions:
  • An empty metal can is heated to 908C and sealed. It is then placed in a room to cool to 208C. What is the pressure inside the ca
    11·1 answer
  • **Please Help, ASAP**
    6·1 answer
  • Aerospace engineers who work for certain government agencies are often required to have security clearance. Explain two reasons
    9·1 answer
  • Design complementary static CMOS circuits with minimized number of transistors to realize the following Boolean functions (hint:
    13·1 answer
  • Looking back, I was sure that I was going to die that November afternoon. Tornado watches in Alabama are as common as eggs are f
    15·2 answers
  • What are wheel cylinders used for?
    6·1 answer
  • Determine the reactor volume (assume a CSTR activated sludge aerobic reactor at steady state) required to treat 5 MGD of domesti
    5·1 answer
  • Name the ferrous metal that most workshop tools are made from??
    12·2 answers
  • Consider coaxial, parallel, black disks separated a distance of 0.20 m. The lower disk of diameter 0.40 m is maintained at 500 K
    13·1 answer
  • "Transformer is used to change the voltage".
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!