5.2T.pdf - Faculty of Science Engineering and Technology...

This preview shows page 1 - 2 out of 2 pages.

Faculty of Science, Engineering and Technology Introduction to Programming Tutorial Task 5.2: Track File Handling Overview This program will . Purpose: Enhance a simple Ruby program which reads custom data types (records) from a file and writes them to the terminal. Task: Loop to Read in a number of records and place them in an array, then loop to print them out. Submit To: Doubtfire when complete Time: This task should be started in your fifth lab class and submitted for feedback before the start of week 8. Resources: Flanagan, D. & Matsumoto, Y. 2008 The Ruby Programming Language, O’Reilly . Pine, C 2014, Learn to Program (2 nd Ed), Chapter 11, The Pragamatic Programmer (library version – follow the link) Submission Details You must submit the following files to Doubtfire: Basic track_file_handling.rb source code Screenshot of the window showing the execution of your program. Make sure that your task has the following in your submission: The program must read and print a number of tracks from file.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture