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
laila [671]
3 years ago
6

Write a program that ask the user to enter air water or Steele and the distance that a sound wave will travel in the medium the

program should then display the amount of the time it will take you can calculate the amount of time it takes sound to travel in air with the following formula time = distance/1,100 you can calculate the amount of time it takes sound to travel in water with the following formula time = distance/ 4,900 you can calculate the amount of time it takes sound to travel in steel with the following formula time = distance/16,400
Computers and Technology
1 answer:
blsea [12.9K]3 years ago
4 0

I am writing this program in python:


1) distance  = int(input("Enter the distance that a sound wave will travel"))

//In line one we are getting the user input

// Now it is time to calculate by using formula

2) sound_to_travel_in_air_time = distance/1100

3) sound_to_travel_in_water_time = distance/4900

4) sound_to_travel_in_steel_time = distance/16400


// After calculating now it is the time to print their values on the console

5) print("Sound to travel in air time is: ",sound_to_travel_in_air_time)

6) print("Sound to travel in water time is: ",sound_to_travel_in_water_time)

7)print("Sound to travel in steel time is: ",sound_to_travel_in_steel_time)


This is the complete program i hope you get the idea.

You might be interested in
Catering question<br> What is the hottest food in the world
Elza [17]
The hottest food in the world is a Ghost Pepper. It is 400 times hotter than Tabasco sauce. It was 1 million SHU's! Hope this helps! ^0^

The correct answer is: Ghost Peppers
7 0
4 years ago
In python 3.17 LAB: Convert to dollars
krok68 [10]

To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.

The program written in Python where comments are used to explain each line is as follows:

<em />

<em>#This gets input for the number of quarters</em>

quarters = int(input("Quarters: "))

<em>#This gets input for the number of dimes</em>

dimes = int(input("Dimes: "))

<em>#This gets input for the number of nickels</em>

nickels= int(input("Nickels: "))

<em>#This gets input for the number of pennies</em>

pennies= int(input("Pennies: "))

<em>#This converts the amount to dollars and cents</em>

dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01

<em>#This prints the amount to 2 decimal places</em>

print("Amount ${:.2f}".format(dollars))

Read more about Python programs at:

brainly.com/question/22841107

7 0
3 years ago
You can tell when an image is selected, because its sizing handles will be visible. True or False
Ivenika [448]

This is true because you can go and check yourself in Word and you can click on an image and the sizing handles will appear.

hope that helps :)

8 0
4 years ago
Read 2 more answers
How to transfer photos from iphone to iphone?
STALIN [3.7K]
If you have icloud then you can transfer them.
7 0
3 years ago
Read 2 more answers
Critical Thinking Questions
nydimaria [60]
You’re profile is so cute hope this helps :)
5 0
2 years ago
Other questions:
  • You can use this effect to break a color into a percentage of its full strength.
    13·1 answer
  • Software on your computer is taking a long time to load. What could help solve this problem?
    5·1 answer
  • Why are the READ and DATA statements used<br>together?​
    10·1 answer
  • Pls help will give brainlest​
    15·2 answers
  • When browsing using certain browsers, if a page is known to be malicious or using phishing techniques in the past a browser may
    5·1 answer
  • Which is a benefit of peer-to-peer networking?
    12·1 answer
  • A computer game allows a player to repeat a level until they run out of lives. Which two of the following loops would work corre
    8·2 answers
  • Here’s my last question
    12·2 answers
  • What is one way object-oriented programming differs from procedural programming?
    15·1 answer
  • Andy works for a TV broadcasting company. He needs to set up a network covering a small area on the work floor. However, he noti
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!