Skip to content

Attempt at writing a simple four or five function calculator in Ruby

Notifications You must be signed in to change notification settings

sjroma/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Ruby Calculator

  • Attempting to create a simple four or five function calculator in Ruby. Originally did something like this in college written in C. That's where the idea came from.
  • Initially checked in the code. Needs a lot of rework.

To Do

  • Can I, or should I, separate this into classes and modules?
  • DRY, there's a lot of repeated code, e.g.
gets.chomp.to_i

See about defining it in a module and then call it

  • Refactor so the output repeats the expression and displays the answer

  • Refactor to work with more than two numbers

    • Etc.
    /Git/calculator

About

Attempt at writing a simple four or five function calculator in Ruby

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages