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
Ostrovityanka [42]
4 years ago
10

Write a program that displays a menu allowing the user to select air water, or steel. After the user has made a selection, the n

umber of feet a sound wave will travel in the selected medium should be entered. The program will then display the amount of time it will take. (Round the answer to four decimal places.)
Computers and Technology
1 answer:
luda_lava [24]4 years ago
7 0

Answer:

// Program is written in C++ Programming Language

// Comments are used for explanatory purpose

// Program starts here

#include<iostream>

using namespace std;

int main ()

{

// Declare Variable

int selection;

// Prompt user to make a selection of medium between air, water or steel.

cout<<"Make Selection"<<'\n'<<"Press 1 for Air"<<'\n'<<"Press 2 for Water"<<'\n'<<"Press 3 for Steel";

cin>>selection;

// Check for entry

if(selection == 1) {

cout<<"You selected Air"<<'\n';

cout<<"The distance travelled by sound wave in air is 1,125 feet in 1 second";

}

else if(selection == 2) {

cout<<"You selected Water"<<'\n';

cout<<"The distance travelled by sound wave in water is 4859 feet in 1 second";

}

else if(selection == 3) {

cout<<"You selected Steel"<<'\n';

cout<<"The distance travelled by sound wave in steel is 19554 feet in 1 second";

}

else

cout<<"Invalid Selection";

return 0;

}

You might be interested in
Help me please!! It would be appreciated :)
IgorC [24]

the tool that you use is called Lens Correction.

Hope this helped

-scav

6 0
3 years ago
Read 2 more answers
When should you use an electronic spreadsheet
nadezda [96]

Answer:

An electronic spreadsheet can be used to perform numerical calculations automatically

Explanation:

An electronic spreadsheet can be used to perform numerical calculations automatically. This spreadsheets are set up in the form of a table with rows and columns.

Data is stored in a cell formed as a result of intersection of each row and column.

Their primary purpose is to organize and categorize data into a logical format. This data then can be used to organize and grow the business.

6 0
3 years ago
It is a good idea to include your teacher’s name on a title page.
kkurt [141]
I usually include my teachers name in the upper right hand corner along with the date my name and the subject.
6 0
4 years ago
Read 2 more answers
Which option is available when reviewing changes and using the Accept command in the Compare group?
Zarrin [17]

Answer: Accept only one at a time, all on a slide, or all changes in a presentation.

Explanation:

Took the review

6 0
3 years ago
Read 2 more answers
Analyse how the reduction in size and the profitability of computer have influence their usage​
Olin [163]

HOPE ITS HELP

IN THE PICTURE

6 0
2 years ago
Other questions:
  • Write a script that will generate random integers in the range from
    10·1 answer
  • 2) Describe how data becomes knowledge.​
    10·1 answer
  • Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual
    6·1 answer
  • Combustion is an example of to energy conversion.
    6·1 answer
  • A cookie filter blocks the sending and receiving of cookies. Blocking cookies can reduce some threats of session tracking and id
    12·1 answer
  • You have a computer at home. The computer is connected to the Internet through a dial-up connection. Every time you connect to t
    14·1 answer
  • A(n) _____ is a network connection device that can build tables that identify addresses on each network.
    10·1 answer
  • What kind of waste does a computer generate?<br><br> Will give brainly :3
    12·1 answer
  • Project: Digital Media and Business
    9·1 answer
  • All character entities end with _____ to signal the browser that everything in between is an entity representing a symbol.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!