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
4. Which of the following is a face-to-face meeting between the hiring party and the applicant?
Mnenie [13.5K]

Answer:

A

Explanation:

because my mom has done this

8 0
3 years ago
Read 2 more answers
True or False? To reduce hazards, flexible cords must connect to devices and fittings in ways that prevent tension at joints and
anastassius [24]
<span>It can be true and is really necessary for this type of things when fittings in ways that prevent tension at joints and terminal screws. So, Flexible cords are finely stranded for flexibility, so straining a cord can cause the strands of one conductor to loosen from under the many joints.</span>
5 0
3 years ago
Does anyone have any suggestions on how to teach my grandma to use her tablet? She always complains when it says not responding.
spayn [35]
Try to explain slowly and with patience it takes time because she isn't used to it
8 0
3 years ago
Write an application that calculates and displays the amount of money a user would have if his or her money could be invested at
S_A_V [24]

Answer:

Following are the program to this question:

import java.util.*;//import package for user input

class Interest //defining class Interest

{

   static double rate_of_interest = 5.00;//defining static double varaibale  

   public static double Invest_value()//defining method Invest_value

   {

           double invest;//defining double variable invest

           Scanner inc = new Scanner(System.in);//creating Scanner class object  

           System.out.print("Enter investment value: ");

           invest = inc.nextDouble();//input value in invest variable

           return invest;//return invest value

  }

  public static double calculated_Amount(double invest)//defining method calculated_Amount that accept parameter

  {

           double amount;//defining double variable

           amount = invest+ (invest * (rate_of_interest/100));//use amount to calculat 5 % of invest value

           return amount;//return amount value

  }

   

   public static void main(String[] as)//defining main method

   {

   double investment_value;//defining double variable

   investment_value= Invest_value();//use investment_value to hold method Invest_value value

   System.out.println("The 5% of the invest value: "+ calculated_Amount(investment_value));//use print method to print calculated_Amount value

  }

}

Output:

Enter investment value: 3000

The 5% of the invest value: 3150.0

Explanation:

In the above program a class "Interest", is defined inside the class a static double variable "rate_of_interest"  is declared that store a double value, in the next step, two methods "Invest_value and calculated_Amount" is declared.

In the "Invest_value" method, scanner class object is created for input value in the "invest" variable and the "calculated_Amount" accepts an "invest" value in its parameter and calculate its 5% and store its value in the "amount" variable.

Inside the main method, the "investment_value" is declared that holds the "Invest_value"  method value and pass the value in the "investment_value" variable in the "calculated_Amount" method and prints its return value.

4 0
3 years ago
Gladwell thinks Twitter is good for:
Svetllana [295]

Answer:

addressing world problem

4 0
3 years ago
Other questions:
  • Identify a major drawback of browsing web pages on mobile devices.
    15·1 answer
  • The assignment operator has left-to-right-to-left associativity, which means that the value of the expression to the left of the
    13·1 answer
  • Samantha was calculating a mathematical formula on an electronic spreadsheet. She used multiple values to recalculate the formul
    8·2 answers
  • What are some options available in the Spelling and Grammar Checker in word?
    6·1 answer
  • In modern web design, color, font, font size, and style should be declared using:
    5·1 answer
  • 2. A well designed high-volume system will minimize _________ inventory and reduce _____________for the product or service. a) w
    7·1 answer
  • The blank method returns an integer between the two provided numbers. It can take the value of either of the provided numbers
    12·1 answer
  • When we code an algorithm, we need to provide the commands in the order we want the
    10·1 answer
  • A(n) _________ Web page displays customized content in response to keyboard or mouse actions or based on information supplied di
    5·1 answer
  • Enumerate five features of Microsoft excel 2016​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!