How To Convert An Assignment Into A PDF
How To Convert An Assignment Into A PDF
INTRODUCTION
You are required to submit your assignments electronically via myUnisa in PDF
format. Please submit only one PDF file for an assignment. This PDF file should
contain the source code as well as the output produced by that source
code for each question in the assignment. This tutorial letter shows you how to
create your assignment as a PDF file so that you can submit it electronically.
You can also watch the video on how to create a PDF file for an assignment
under Additional Resources on the COS1511 website on myUnisa.
1
How to convert an assignment into a PDF file
Once you have done all the questions for an assignment, i.e. all the programs
compile correctly and produces output, you are ready to create the PDF file for
submission.
1. Start off by creating a new Word document and saving it with the name in
the following format:
YourStudentNumber_COS1511_AssignmentNumber, e.g.
12345678_COS1511_01
2. Include your detail, i.e. name, student number, and the assignment
number on the first line of the Word file.
3. Number each question and then add the source code, input and the output
for the question. Add the source code as follows:
In Code::Blocks, open the .cpp file containing your solution to the
question.
Select all the source code (the contents of the .cpp file in Code::Blocks)
using CTRL A.
Copy the selected source code using CTRL C.
Go to your Word document, and paste the source code under the
question heading using CTRL V, or Paste on the menu bar.
Now select the source code you have pasted in Word, change the font
for the program code to Courier New, change the paragraph spacing
to ‘No Spacing’, and the font size to 10.
Figure 1 shows the options on the Word toolbar we have used to format
the source code as required.
2
How to convert an assignment into a PDF file
Figure 1
3
How to convert an assignment into a PDF file
Handle on corner
Handle on corner
Figure 2
You should end up with a Word document looking similar to the example
in Figure 3.
4
How to convert an assignment into a PDF file
Question 1
#include <iostream>
using namespace std;
int main()
{
cout << " Hello" ;
return 0;
}
Output:
Figure 3
5
How to convert an assignment into a PDF file
Figure 4
6. If you have one of the newer versions of Word, you may be able to
export the Word file as a PDF which you can then submit on myUnisa. If
not, you can use any of the free PDF converters available on myUnisa
on the Welcome Page under Electronic Tools (last button on the right-
hand side of the screen.
Electronic
Resources
Figure 5
6
How to convert an assignment into a PDF file
Figure 6
We recommend that you use CutePDF Writer to convert your Word file
into a PDF document.
To convert your Word file into a PDF file with CutePDF Writer, in Word,
select the Print command in the File menu, and choose CutePDF Writer
as your printer. See Figure 7 below.
7
How to convert an assignment into a PDF file
Choose CutePDF
Writer as your
printer
Figure 7
A Save As dialog box will appear where you can choose the folder where
you want to save the file in and specify the name of the file as shown in
Figure 8. Click on Save and then go to that folder to find your PDF
document.
NB: Please do not encrypt your file, or save it as ‘Read only’, since we will
not be able to mark such files. Also make sure that your file is not
corrupted.
8
How to convert an assignment into a PDF file
Figure 8
The result of installing CutePDF Writer is that from now on you’ll have an
additional option to choose from when launching the print functionality provided
by your applications.
This will enable you to save any document as a PDF, by printing it to a PDF file
instead of a physical printout.
CutePDF Writer can also be downloaded from one the following sites:
http://www.cutepdf.com/
http://www.cutepdf.com/Products/CutePDF/writer.asp
9
How to convert an assignment into a PDF file
INSTALLATION REQUIREMENTS
Supports Microsoft Windows 98/ME/2000/XP/2003/Vista/7/2012/8/8.1 (32-
bit/64-bit).
Requires PS2PDF converter such as Ghostscript (recommended).
GNU Ghostscript is a free open-source interpreter for the PostScript
language and the PDF file format. You can get the free GPL Ghostscript
8.15 from the site where you download CutePDF Writer.
UNISA
2016
10