Write a program in python to convert a u.s. customary system

Assignment Help Computer Engineering
Reference no: EM132211144

Write a program in PYTHON to convert a U.S. Customary System length in miles, yards, feet, and inches to Metric system length in kilometers, meters, and centimeters.

After the numbers of miles, yards, feet, and inches are entered, the length should be converted entirely to inches and then divided by 39.37 to obtain the value in meters.

The int function should be used to break the total number of meters into a whole number of kilometers and meters.

The number of centimeters should be displayed to one decimal place.

The needed formulas are as follows:

total inches = 63, 360 * miles + 36 * yards + 12 * feet + inches

total meters = total inches/39.37

kilometers = int(meters/1000)

Reference no: EM132211144

Questions Cloud

Determining the square root of a number : Determining the Square Root of a Number Via Recursion For this programming project you will develop an recursive function to ?nd the square root of a number.
In which program do you feel you are strongest : In which program do you feel you are strongest? What do you think you could do to bolster your strength in the other programs?
Create an array with the number of rows and columns : Write a program which prompts the user to enter the number of rows and columns in a table.
How does remote access permission works : How does remote access permission works? What could interfere with the ability to access a user's system?
Write a program in python to convert a u.s. customary system : Write a program in PYTHON to convert a U.S. Customary System length in miles, yards, feet, and inches to Metric system length in kilometers, meters.
Associated with the programming language names : Briefly explain the "meanings" associated with the programming language names C++, Lisp, Prolog.
Print a pyramid where the last row contains all numbers : Write a program pyramid.cpp that reads a positive odd whole number n and prints a pyramid where the last row contains all numbers from n down.
What language supported data structure : Lists are also supported in Prolog. In C and C++, a list can be implemented using what language supported data structure?
Think for a moment about the telecommunication industry : Think for a moment about the telecommunication industry today and what it was just a few years ago, where are we headed?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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