Skip to content

This Java program converts between calories and joules based on user input. It uses constants and a switch menu to handle conversions. The user can choose to convert calories to joules or joules to calories and repeat or exit.

Notifications You must be signed in to change notification settings

Wiiifiii/Java-Calories-Joules-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java-Calories-Joules-Converter

This Java program converts between calories and joules based on user input. It uses constants and a switch menu to handle conversions. The user can choose to convert calories to joules or joules to calories and repeat or exit.

Getting Started

Prerequisites

  • Java Development Kit (JDK) 8 or higher
  • An IDE such as IntelliJ IDEA, Eclipse, or Visual Studio Code

Installation

  1. Clone the repository:
    git clone https://github.com/Wiiifiii/Mob-prog-Assaignment_3_Java.git
  2. Open the project in your IDE.

Running the Program

  1. Navigate to the src folder.
  2. Run the main class to start the program.

Usage

  1. The program will present a menu to convert between calories and joules.
  2. Choose the conversion type and enter the value to be converted.
  3. The program will display the converted value and prompt to repeat or exit.

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the bin folder by default.

If you want to customize the folder structure, open .vscode/settings.json and update the related settings there.

Dependency Management

The JAVA PROJECTS view allows you to manage your dependencies. More details can be found here.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

This project is licensed under the MIT License.

About

This Java program converts between calories and joules based on user input. It uses constants and a switch menu to handle conversions. The user can choose to convert calories to joules or joules to calories and repeat or exit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages