Introduction To Programming: Tutorial Task 1.1: Hello World
Introduction To Programming: Tutorial Task 1.1: Hello World
Introduction to Programming
Tutorial Task 1.1: Hello World
Overview
As a first step, create the classic “Hello World” program. This will help ensure that you have all
of the software installed correctly, and are ready to move on with creating other programs.
Purpose: Install and test the tools needed to get started programming.
Task: Create your own Hello World program using the command line interpreter.
Time: This task should be completed in your first lab class and submitted for
feedback before the start of week 2.
Resources: Pine, C 2013 Learn to Program, The Pragmatic Programmer. (available in the library).
Submission Details
You must submit the following files to Doubtfire:
■ Hello World source code (hello_world.rb)
■ Screenshot of the Terminal showing use of cd, ls, and ruby commands as well as execution
2. If you don’t already have one, make a directory (i.e., a ‘folder’) to store your code (e.g.,
Documents/Code/Lab1). On a Swinburne computer you may wish to use a directory on
your student drive or a USB storage device.
• Navigate to your Documents directory in Finder or File Explorer
• Right click in the Documents directory and select New Folder, name it Code
3. Open your text editor , and create a new file.
4. Enter the text for the Hello World program. It should appear as shown here:
Tip: Bash commands (e.g., cd, ls, pwd, fpc) do not like spaces in directory or file names
(e.g., My Documents, or hello_world.rb). If you have a space in the
name of something you need to add in a reverse slash:
My\ Documents and hello_world.rb
Avoid spaces in the names of your files and folders!
Now that the Task is complete you can submit it for assessment, which will help prepare it for
your portfolio.
7. Use Skitch (or your preferred screenshot program) to take a screenshot of the
Terminal, as this is one of the things you will need to submit.
8. Login to Doubtfire, and locate Tutorial Task 1.1
9. Change the status of the task to Ready To Mark
10. Upload your completed Hello World code and the screenshot.
11. If you check back later Doubtfire will have prepared these as PDFs for your tutor to as-
sess.
12. Now, remember to save the document and backup your work to multiple locations!
■ Once you get things working you do not want to lose them.
■ Work on your computer’s storage device most of the time... but backup your work
when you finish each task.
■ Use Dropbox or a similar online storage provider, as well as other locations.
■ Doubtfire is not a Backup of your work, so make sure you keep a copy!
■ USB keys and portable hard drives are good secondary backups... but can be lost/
damaged (do not rely upon them).
You now have your first portfolio piece. This will help demonstrate your learning from the unit.
Note: This is one of the tasks you need to submit to Doubtfire. Check the assessment
criteria for the important aspect your tutor will check.