Skip to content

lisbeth34/metric_conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

metric_conversion

Conversion Unit Project

  • This project is a simple console-based unit converter that converts between the following units:

  • Feet to Meters

  • Pounds to Kilograms (Kgs)

  • Fahrenheit to Celsius

Prerequisites

  • To run this project, you need to have the following installed on your system:

  • Java Development Kit (JDK)

  • NetBeans IDE

  • Getting Started

Follow these steps to set up and run the project in NetBeans:

  • Clone or Download the Project:

  • If you have Git installed, you can clone the repository using the following command:

git clone


  • Alternatively, you can download the ZIP file from the repository and extract it to a folder on your computer. Open the Project in NetBeans:

Open NetBeans IDE.

  • Go to File > Open Project.

  • Navigate to the folder where you cloned/downloaded the project and open it.

  • Run the Project:

  • In the Projects pane, right-click on the project folder (e.g., conversion_unit).

  • Select Run.

  • Use the Converter:

The program will prompt you to enter the unit you want to convert from. You can enter one of the following:

  • Feet
  • Pounds
  • Fahrenheit

Next, you will be prompted to enter the unit you want to convert to. You can enter one of the following:

  • Meters
  • Kgs
  • Celsius

Finally, enter the quantity you want to convert and press Enter.

  • The program will display the result of the conversion.

Example Usage

  • plaintext
  • Enter the unit you want to convert from:
  • Feet
  • Enter the unit you want to convert to:
  • Meters
  • Enter the quantity to be converted:
  • 20
  • The result of the conversion is: 3.048

    Troubleshooting

  • Ensure that you enter the unit names exactly as specified (case insensitive). For example, "Feet", "Pounds", "Fahrenheit", "Meters", "Kgs", "Celsius".
  • If you receive an "Invalid conversion" message, check that you have entered the units correctly and that the conversion is supported.

output

feet

fahrenheit

pounds

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages