Skip to content

Convert temperatures between Fahrenheit, Celsius, and Kelvin.

License

Notifications You must be signed in to change notification settings

jasoncavinder/convert_temp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forks Stargazers Issues Unlicense LinkedIn


Convert Temp

Convert temperatures between Fahrenheit, Celsius, and Kelvin.
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Convert Temp Screen Shot

I'm learning Rust by working through "The Book" and building simple projects to practice the concepts discussed in various chapters. This is one of those projects.

This project was based on the following prompt:

You made it! This was a sizable chapter: you learned about variables, scalar and compound data types, functions, comments, if expressions, and loops! To practice with the concepts discussed in this chapter, try building programs to do the following:

  • Convert temperatures between Fahrenheit and Celsius.
  • Generate the nth Fibonacci number.
  • Print the lyrics to the Christmas carol “The Twelve Days of Christmas,” taking advantage of the repetition in the song.

(back to top)

Built With

  • Rust
  • VS Code

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Rust

[Optional] Install a C compiler

Installation

  1. Clone the repo
    git clone https://github.com/jasoncavinder/convert_temp.git

(back to top)

Usage

Build & Run

cargo run
Convert temperatures between Fahrenheit, Celsius, and Kelvin.
Enter a temperature and a unit (F, C, or K) to convert to the other units.
98.6F
98.6 °Fahrenheit is 37.0 °Celsius and 310.15 Kelvin.

Enter another temperature to convert or press enter to exit.
Enter a temperature and a unit (F, C, or K) to convert to the other units.
55C
55.0 °Celsius is 131.0 °Fahrenheit and 328.15 Kelvin.

Enter another temperature to convert or press enter to exit.
Enter a temperature and a unit (F, C, or K) to convert to the other units.
100K
100.0 Kelvin is -173.15 °Celsius and -279.67 °Fahrenheit.

Enter another temperature to convert or press enter to exit.
Enter a temperature and a unit (F, C, or K) to convert to the other units.
-500F
Temperature is below absolute zero.

Enter a temperature and a unit (F, C, or K) to convert to the other units.
0k
0.0 Kelvin is -273.15 °Celsius and -459.67 °Fahrenheit.

Enter another temperature to convert or press enter to exit.
Enter a temperature and a unit (F, C, or K) to convert to the other units.
-10C
-10.0 °Celsius is 14.0 °Fahrenheit and 263.15 Kelvin.

Enter another temperature to convert or press enter to exit.
Enter a temperature and a unit (F, C, or K) to convert to the other units.

Exiting.

(back to top)

Roadmap

  • Add comments and documentation
  • Optimize code

See the open issues for a full list of proposed features (and known issues).

(back to top)

License

Distributed under the Unlicense. See UNLICENSE.md for more information.

(back to top)

Acknowledgements

(book) The Rust Programming Language

(back to top)

Contact

Jason Cavinder - @jasoncavinder - [email protected] - Jason Cavinder

Project Link: https://github.com/jasoncavinder/convert_temp

(back to top)

About

Convert temperatures between Fahrenheit, Celsius, and Kelvin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages