Skip to content

List of one off scripts that do fun or helpful things

Notifications You must be signed in to change notification settings

balexandr/code_challenges

Repository files navigation

Code Challenges

List of code challenges to show how I would solve certain problems

Scripts/Utility Splitter

The util_splitter script was created because I was living with multiple tenants where each tenant handled different utilities and paid different rent amounts. Figuring out how much each person owed the other every month became daunting and frustrating.

This script takes a hash of tenants and their subsequent rent and a hash of utilities, who handles paying them and how much they cost. Once run, it will output which tenant owes the other tenant and how much. I've also added how much each tenant should pay including utilities, the total utility cost and the split of the utilities.

$ ruby util_splitter.rb

About

List of one off scripts that do fun or helpful things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published