Home Segments Index Top Previous Next

628: Practice

Modify the program shown in Segment 627 such that it displays the railroad-car owner, in addition to railroad car type and capacity, as in the following example:

TPW     eng     0 
PPU     box     3990 
NYC     box     3990 
NYC     tnk     1539.38 
TPW     cab     0 

Avoid using the new operator in your solution.