Giter Club home page Giter Club logo

conversioncalculator's Introduction

ConversionCalculator

The OCaml module provides a collection of functions for performing various unit conversions. It includes functions for converting lengths between meters and feet, temperatures between Celsius and Fahrenheit, weights/masses between kilograms and pounds, volumes between liters and gallons, energies between joules and calories, pressures between pascals and PSI, speeds between meters per second and miles per hour, cooking measurements between cups and tablespoons, data storage between bytes and kilobytes, and fuel consumption between miles per gallon and liters per 100 kilometers. These functions allow easy and accurate conversions between different units, making it convenient for beginner like me.

I have solved few leetcode problems using OCaml.

How to compile and execute?

To compile and run each OCaml program, follow the same steps as before:

  • Make sure OCaml and utop are installed on your system.
  • Open a terminal and navigate to the directory containing the .ml files.
  • Compile the OCaml code using the ocamlc compiler:
ocamlopt -o HitCounter HitCounter.ml
./HitCounter
ocamlopt -o ExpressionAddOperators ExpressionAddOperators.ml
./ExpressionAddOperators
ocamlopt -o WalkingRobotSimulation WalkingRobotSimulation.ml
./WalkingRobotSimulation
ocamlopt -o SnakeGame SnakeGame.ml
./SnakeGame
ocamlopt -o weightConvertor weightConvertor.ml
./weightConvertor
ocamlopt -o pressureConversion pressureConversion.ml
./pressureConversion
ocamlopt -o fuelConsumptionConverter fuelConsumptionConverter.ml
./fuelConsumptionConverter
ocamlopt -o dataStorageConverter dataStorageConverter.ml
./dataStorageConverter
ocamlopt -o currencyConverter currencyConverter.ml
./currencyConverter
ocamlopt -o fractionConverter fractionConverter.ml
./fractionConverter
ocamlopt -o timeConverter timeConverter.ml
./timeConverter
ocamlopt -o lengthConverter lengthConverter.ml
./lengthConverter

conversioncalculator's People

Contributors

jojo142 avatar nayeemtech avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nayeemtech

conversioncalculator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.