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

  Create a coin-flipping game

Create a coin-flipping game. Ask the user how many times to flip the coin, and use the random function to determine heads or tails each time a coin is flipped.

  Display the number of circle objects that have been created

Write a class Test Circle with a main method that displays the number of Circle objects that have been created.

  Estimate how much money midcorp should spend on power

Estimate how much money MidCorp should spend on power protection. You will have to make several assumptions to do this.

  Describe a scheme that allows for buy and sell orders

Describe a scheme that allows for buy and sell orders to be entered in O(logn) time, independent of whether or not they can be immediately processed.

  What do you understand by structural parallelism

What do you understand by structural parallelism in a parallel program? List the different possible forms of structural parallelism which we have studied.

  How much of an area to leave uncut

One problem in timber management is to determine how much of an area to leave uncut so that the harvested area is reforested in a certain period of time.

  Determine the ideal number of clusters

Determine the ideal number of clusters. Choose random center points for each cluster. (Note: Each student will select a different random set of centroids.) Using a standard distance formula measure the distance from each data point to each center ..

  Design the d flip-flop

You are given a D flip-flop. Design the circuitry around it to convert it into a T flip-flop, SR flip-flop, JK flip-flop.

  Write description to identify the main stakeholders

Describe the problem at IFG as succinctly as you can. Use this description to identify the main stakeholders. IFG can't afford the resources to identify.

  Why is a cd player less flexible than a computer

Why is a CD player less flexible than a computer? What does a computer user need to know about programming in order to play a video game?

  Create a list of construction activities

It is required to select a project from the following list: Mall; Bridge; Tunnel; Stadium; Educational Building; Hospital; office building or Hotel. Create a WBS (detailed) and Create a list of construction activities

  Write a program for a computer that has ten registers

Using mathematical methods (Individual Hand-In) Assume you are asked to write a program for a computer that has 10 registers and contains a memory of 1000 words.

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