answersLogoWhite

0


Best Answer

/*POUNDS TO KILOGRAMS FORMULA

* Divide the amount in pounds by 2.2 to determine the amount in kilograms.

*

*KILOGRAMS TO POUNDS FORMULA

* Multiply the amount in pounds by 2.2 to determine the amount in pounds

*/

package poundstokilo;

import java.util.Scanner;

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

double pounds, kilo;

System.out.println("Enter a number in pounds");

pounds = input.nextDouble();

kilo = (pounds / 2.2);

System.out.println(pounds + " pounds is " + kilo + " kilograms");

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

I suggest you write a method of a class; the class might be called "conversions", the specific method might be called "kilogramsToPounds()". Or just define constants (final fields - I suggest they also be static) in the class, and use them to multiply - the constant might be called something like poundsPerKilogram.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a java program that converts kilograms to pounds?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write 1200000 pounds in kilograms?

1,200,000 pounds is 544,310 kilograms.


How do you write 600 pounds in kg?

600 pounds = 272.155kg (1 pound = 0.453592kg)


How do you write 1kg in pounds and ounces?

1kg converts to about 2.2 (2.20462) pounds.


Write a program that converts a decimal number to nearest integer?

prompt x floor(x + .5) -> x disp x


What is 156lb in kgs?

Kilogram is the metric unit and pound is the imperial unit for mass. 1 Kilogram is 2.204 pounds. So we multiply pound by 0.4535 to get the equivalent kilograms. Answer in kg approx = 70.76


How do I write two hundred fifteen thousandths in kilograms?

The answer depends on the units which were used for the amount. The answer, in kilograms will be different according to whether the units were grams, pounds, tons or some other measure.


Write short note on assembler?

A computer program that takes non-machine language instructions prepare by a computer user and converts them intto a for that may be used by the computer(:


How do you write 19.2 kilograms in scientific notation?

1.92*101 kilograms.


Would you use grams or kilograms to measure a cow?

you use pounds or, since you're asking about metric measure, kilograms. You could use either but the answer in kilograms is much easier to read and write since. For example, if the cow weighs 700 lbs, its weight in grams would be 317,514 g. It's weight in kilograms would be 317.5 kg.


How do you write kilograms?

kg


How you write the conversion factor that converts millimeters to meters?

0.001


How many kilos is 1500 pounds?

3306.93 pounds. The actual conversion of 1 kilogram is equal to 2.204622622 pounds. For everyday use, rounding to 2.2 should be enough. One pound is 0.45359237 kilogram, or 0.45 kg for everyday use.