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
Which of the following is an accurate statement? When the LOWER function is used in a SELECT clause, it will automatically store
quester [9]

Answer:

Hi there! The answer is C:

Explanation:

The scope of the LOWER function is limited to the select clause it is being used in. Outside of the select statement, the column will be returned as it is currently present in the database. Using the LOWER function will not automatically store data in lower case letters in the database tables. As an exercise, try creating a simple database table called "Employees" with columns "id" and "name". Then input a row using an insert statement with id as 1 and name as "BLAH". Try using the select statement with LOWER function and then without the LOWER statement.

5 0
3 years ago
Which of these is a major mobile game developer?
Firlakuza [10]
Im thinking Zynga because it has tons of games
7 0
3 years ago
Read 2 more answers
Write a class called SimpleSquare that has the following properties: - public int field called num - private int field called sq
mezya [45]

Answer:

public class SimpleSquare{

   public int num;

   private int square;

   

   public SimpleSquare(int number){

       num = number;

       square = number * number;

   }

   

   public int getSquare(){

       return square;

   }    

}

Explanation:

*The code is in Java.

Create a class called SimpleSquare

Declare two fields, num and square

Create a constructor that takes an integer number as a parameter, sets the num and sets the square as number * number.

Since the square is a private field, I also added the getSquare() method which returns the value of the square.

6 0
3 years ago
Why header files are needed in every c program ?expalin​
bonufazy [111]

Answer:

Header files serve two purposes. System header files declare the interfaces to parts of the operating system. You include them in your program to supply the definitions and declarations you need to invoke system calls and libraries.

6 0
2 years ago
Is a storyboard an example of an implemation tool?
goblinko [34]
Yes, the answer is true.
8 0
3 years ago
Read 2 more answers
Other questions:
  • Which Of the following components leads to slow computer performance when it becomes outdated
    12·2 answers
  • If you define a destructor, are you required to define an operator '=' and a copy constructor?
    9·1 answer
  • Write a program that asks the p34won to enter their grade, and then prints GRADE is a fun grade. Your program should repeat thes
    7·1 answer
  • A garments manufacturing company buys various types of natural and synthetic materials to produce clothes. Which material is a s
    6·2 answers
  • Lesson 3 - Calling All Operators
    6·1 answer
  • Each bolt diameter in the standard system can have one of two thread pitches, or UNE.​
    10·1 answer
  • Which option ensures that items in a text box or table cell will be in the absolute center of that element?
    12·1 answer
  • Another word for asking a question of your data is to _____ it.
    6·1 answer
  • Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.
    8·1 answer
  • ____ characterized the period now known a Web 1. 0. Augmented reality
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!