Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 805 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 805 Bytes

Recipe Hash

Most programs have data -- here we talk about 3 ways to store data in a program: the ever-present Hash, the cool-kid Struct, and a regular Class.

Your Assignment

Change our recipe hash into a hash that that describes a Train.

It should have

  • a current city, a number of engines, a number of cars, and a caboose.
  • output the train formatted nicely.
  • Create a passenger Struct that has a name and a train (from above)

Show Notes

Copyright: Jesse Wolgamott, MIT License (See LICENSE)