100%(2)2 out of 2 people found this document helpful
This preview shows page 1 - 2 out of 4 pages.
Faculty of Science, Engineering and Technology Introduction to Programming Tutorial Task 2.2: Using Functions (Hello User with Functions) Overview In this task we change our Reading and Writing (Hello User) program to use functions to prompt and read in values. Purpose: Learn how to use functions. Task: Use the instructions on the following pages to modifyyour own Hello User program from Pass Task 1.3. Submit to Doubtfire when complete. Time: This task should be completed in your lab class and submitted for feedback. Resources: ■Chapters 1 – 3 of ‘Learn to Program’ Chapt 1: NumbersChapt 2: Letters Chapt 3: Variables and Assignment Chapt 4: Mixing it up ■Learn Ruby the Hard Way: Learn Ruby the Hard Way: Functions can return something. Submission Details You must submit the following files to Doubtfire: ■Modified Reading and Writing (Hello User) source code (hello_user_with_functions.rb)■Screenshot of the Terminal showing the execution of your modified Hello User program.■The completed Data Dictionary in the Task 2.1 Question/ Answer SheetMake sure that your task has the following in your submission: ■The program must use Ruby functions you write in input_functions.rb to read the required details from the user, and respond correctly.