Skip to content

0xlvl3/Conversions-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conversions-CLI

Currently still creating this CLI program.

This program Conversions-CLI is a simple command-line application that generates random conversion problems for the user to solve. The user is given a randomly generated value for one unit of measurement and asked to convert it to another unit of measurement. The user's score is tracked and displayed at the end of the game.

Currently Supported Conversions

  1. Time

  • Years => Days
  • Days => Years
  • Hours => Days
  • Days => Hours
  • Hours => Minutes
  • Minutes => Hours
  • Seconds => Minutes
  • Minutes => Seconds

Conversions List (to be added)

This is the list of conversions I will be adding within my program

  1. Length/ Distance
  • 1 inch = 2.54 centimeters
  • 1 foot = 0.3048 meters
  • 1 mile = 1.609 kilometers
  1. Weight/ Mass
  • 1 ounce = 28.35 grams
  • 1 pound = 0.454 kilograms
  • 1 ton = 907.185 kilograms
  1. Temperature
  • Celsius to Fehrenheit: F = (C x 1.8) + 32
  • Fahrenheit to Celsius: C = (F - 32) / 1.8
  1. Volume
  • 1 liter = 1000 milliliters
  • 1 liter = 1.0567 quarts
  • 1 gallon = 3.7854 liters
  1. Data storage
  • 1 byte = 8bits
  • 1 kilobyte (KB) = 1024 Bytes
  • 1 megabyte (MB) = 1024 kilobytes
  • 1 gigabyte (GB) = 1024 megabytes
  • 1 terabyte (TB) = 1024 gigbytes
  1. Processing speed
  • 1 hertz (Hz) = 1 cycle per second
  • 1 megahertz (MHz) = 1 million hertz
  • 1 gigahertz (GHz) = 1 billion hertz
  1. Energy
  • 1 joule (J) = 0.239 calories (cal)
  • 1 kilojoule (kJ) = 0.239 kilocalories (kcal)
  • 1 calorie (cal) = 4.184 (J)

Installation

Will be how you install; don't use method yet.

  • Install Go if it is not already installed.
  • Download or clone this repository to your local machine.
  • Open a terminal window and navigate to the directory containing the repository.
  • Run the command go build to build the executable file.
  • Run the executable file by entering the command ./conversion-game.

About

A CLI conversion game :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages