Program to display the amount of time it will take

Assignment Help Basic Computer Science
Reference no: EM131236425

The following table shows the approximate speed of sound in air, water, and steel.

893_e77ca187-dd55-47b9-a23f-20e8b513e104.png

Write a program that displays a menu allowing the user to select air, water, or steel. After the user has made a selection, he or she should be asked to enter the distance a sound wave will travel in the selected medium. The program will then display the amount of time it will take. (Round the answer to four decimal places.) Input Validation: Check that the user has selected one of the available choices from the menu. Do not accept distances less than 0.

Reference no: EM131236425

Questions Cloud

Evaluate your current organization one in which interested : Read the article titled "Ten Best Practices for Restructuring the Organization". Next, evaluate your current organization, one in which you are interested, or one with which you are familiar. Select three (3) of the ten (10) proposed strategies yo..
Legal and ethical requirements of property management : Explain in your own words who is the client and who is the customer and what your responsibilities are to both parties if you have been appointed to let and manage a residential property - Explain the lessor's obligations at the start of the tenanc..
Effect people on the united states : What caused the great depression and how did it effect people on the united states?
Pretend that you are franklin : Pretend that you are Franklin D. Roosevelt. You must decide what to do with German, Japanese and Italian aliens and their children - many of whom are U.S. citizens. What would you do? Explain your answer.
Program to display the amount of time it will take : The program will then display the amount of time it will take. (Round the answer to four decimal places.) Input Validation: Check that the user has selected one of the available choices from the menu. Do not accept distances less than 0.
Exchange for serving a lord as a soldier : What was the name given to a man who received honor and land in exchange for serving a lord as a soldier. These were well trained soldiers who fought on horseback for their chosen lord.
Discuss the strategic value of personnel training : Discuss the strategic value of personnel training and development. What are the implications for the MNC? How do the risk assessments and recommendations for the global organizations compare to domestic organizations?
Write a case report involving a business : Write a case report involving a business or a nonprofit organization similar to one of the cases found in your textbook. Do NOT USE A COMPANY THAT HAS A CASE IN YOUR TEXTBOOK.
Displays the names sorted in alphabetical order : Write a program that asks the user to enter three names, and then displays the names sorted in alphabetical order. Assume that none of the names are the same. For example, if the user entered "Charlie," "Leslie," and "Andy," the program would disp..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the definition of hacking? is it always illegal

What is the definition of hacking? Is it always illegal?

  Hardware component of a computer

Which of the following hardware component of a computer can also be called as engine?The sequence of phases, a software goes through from the concept to decommissioning, is called as.

  Find legal cases related to hipaa violations

Perform an Internet search to find legal cases related to HIPAA violations reported in the news. Discuss what occurred and, if applicable, how the situation could have been handled differently based on your understanding from the course readings.

  How should mike and iris proceed

If the Enterprise policy Review Committee is not open to the approach that Mike and Iris want to use for structuring InfoSec policies into three tiers, how should Mike and Iris proceed?

  Contrast a business case and a business plan

Compare and contrast a Business Case and a Business Plan. Include definitions and applications.

  Describes the system administration task

Your company is currently planning to automate many different system administration tasks. Your manager has asked you to research a system administration task and implement it using VBScript. In addition, your manager would like to see both a proposa..

  350-700 word summary describing the privacy risks

350-700 word summary describing the privacy risks, security safeguards, and strategies for evaluating the effectiveness of the technology? The chosen topic is Health Care Robots

  Designing structured cyclic scheduler with fixed frame size

Executed according to structured cyclic scheduler with fixed frame size. We require to make three types of design decisions according to: i) Select suitable frame size based on constraints.

  Show that fractional error of this scheme is at most 1/2p

We can modify the algorithm of Section 23.5.2 to use buckets whose sizes are powers of 2, but there are between p and p + 1 buckets of each size, for a chosen integer p > 1. As before, sizes do not decrease as we go further back in time.

  Challenges of a computer forensics specialist

Assignment: Computer Forensics Overview, Suppose you were recently hired for a new position as the computer forensics specialist at a medium-sized communications company

  What is the difference between a hacker and a cracker

Should employees have the right to the expectation of privacy while using an employer's computer workstation? Why or why not? How far should an employer be able to take their investigation of off-work but online habits of employees? Should off..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd