I am writing a travel expense program in Ruby where you would enter the amount spent on various things, transit, bags, etc. On three distinct trips to three different locations. (the program must include three separate trips) I would then like to use the input to perform calculations such as:

- Total cost of all trips combined
- Calculate percentage of total for each trip (example: your trip to Spain made up 50% of the total cost of all trips)
- Calculate all transit, and lodging totals
- return the most expensive trip.

I cannot figure out how to reference the user input to perform the calculations. I have only been able to output the amount spent on each trip (example: Spain : 1500, Hawaii : 2500, Egypt : 6500)

Please let me know if there’s anything I need to clarify. I am really struggling with this.

Here’s the gist:

gist:9f682070c5bdda23ffe5c81543dfa8ae