Write a program that converts english units to metric

Assignment Help Programming Languages
Reference no: EM13784558

Conversion between Metric and Nonmetric Units

English Metric

1 Ounce (oz) 28.3495 grams (g)

1 pound (lb) 453.6 grams (g)

1 inch(in) 2.54 centimeter (cm)

1 foot (ft) 30.5 centimeter (cm)

1 mile (mi) 1.609 kilometer (km)

Write a unit conversion program that converts English units to Metric using the conversion table given above. Ask the user from which unit they want to convert ( oz, lb, in, ft, mi) and which unit they want to convert to (g, kg, cm, and km). Reject incompatible conversions such as gal - > km, ask for the value to be converted; then display the result. Here is an example:

Convert from? gal

Convert to? ml

Value? 2.5

2.5 gal = 9462.5 ml

Reference no: EM13784558

Questions Cloud

Impact of credibility-physical attractiveness : What - Discuss the Characteristics of the Message: What attributes are inherent in persuasive messages? How are we influenced by the emotion, framing, narratives, and rational appeals in the messaging we receive? What is the significance of the sl..
What is the role of the ceo in stakeholder analysis : What is the role of the CEO in Stakeholder Analysis? What types of questions should a CEO ask regarding stakeholder relationships
Challenge as a learning opportunity : How will you reframe your thinking to view the challenge as a learning opportunity? (Describe what resources...)
Issue of common and civil law systems internationally : The issue of common and civil law systems internationally, Intellectual property, copyright infringements, and legal ramifications
Write a program that converts english units to metric : Write a unit conversion program that converts English units to Metric using the conversion table given above. Ask the user from which unit they want to convert ( oz, lb, in, ft, mi) and which unit they want to convert to (g, kg, cm, and km).
Cash flows associated with holding a job : It may surprise you that there are cash flows associated with holding a job. Construct a simple cash flow statement and payback calculation for when your job expenses will be covered for employment you currently have or have had in the past. Inclu..
How specifically did the story prompt or provoke us to feel : How specifically did the story prompt or provoke us to feel? These questions will guide us as we produce our reading journal entries.
How to appropriately answer a business call : The HRD department recently received a request from middle management requesting training on the above subject.
Analysis on projected return on investment : Develop a three- to four-page analysis (excluding the title and reference pages) on the projected return on investment for your college education and projected future employment. This analysis will consist of two parts:

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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