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.
- Java Development Kit (JDK) 8 or higher
- An IDE such as IntelliJ IDEA, Eclipse, or Visual Studio Code
- Clone the repository:
git clone https://github.com/Wiiifiii/Mob-prog-Assaignment_3_Java.git
- Open the project in your IDE.
- Navigate to the
src
folder. - Run the main class to start the program.
- The program will present a menu to convert between calories and joules.
- Choose the conversion type and enter the value to be converted.
- The program will display the converted value and prompt to repeat or exit.
The workspace contains two folders by default, where:
src
: the folder to maintain sourceslib
: 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.
The JAVA PROJECTS
view allows you to manage your dependencies. More details can be found here.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License.