Create a Java program(in NetBeans)

Question

Create a Java program(in NetBeans) that proves the following conversions between different units.

1. Liters and Gallons: If 1 liter is 0.26 gallon, then

a. How many gallons is 26 liters (for example, double gals = 26 * 0.26)

b. How many gallons is 3.58 liters?

c. How many liters is 4.5 gallons?

When doing these conversions you should at lease use two variables of the appropriate type for the above conversions.

After each conversion print the value to the console. For example, "5 gallons is 18.9271 liters"

2. Kilograms and pounds: If 1 kilogram is 2.2 pounds,

a. How many pounds is 56 kilograms?

b. How many kilograms is 198.23 pounds?

c. How many pounds is 456.0023 kilograms?

When doing these conversions you should at lease use two variables of the appropriate

type for the above conversions. After each conversion print the value to the console. For example, "15 pounds is 6.80389 kilograms".

Answer

Drop an email to support@helpwithassignment.com and get instant access to the solution.

 

Download

Comments

  • HWA
    Rasha

    this is a very good website

  • HWA
    maani

    I have 50 questions for the same test your page is showing only 28

  • HWA
    joeanne

    hi can you please help or guide me to answer my assignments. thanks

  • HWA
    joeanne

    hi can anyone help or guide me to my assignments. thanks

  • HWA
    Monik


  • HWA
    Cristina

    This solution is perfect ...thanks

  • HWA
    Janete

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA
    Sandeep

    Perfect bank of solution. 

  • HWA
    Oxana

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA
    Giuseppe

    works fine.