Faculty of Applied Science and Engineering, University of Toronto
CSC181: Introduction to Computer Programming, Fall 2000

Assignment 1 Announcements

Below are announcements and answers to recently asked questions about Assignment 1. If you have a question, please check this page first to see if it has already been answered; if it hasn't, e-mail the instructor or the course newsgroup.


Thursday, 14 September

Updated submission instructions

The assignment specification has been updated to include more detailed submission instructions.


Sample meta-file and input and output files

Click the links below for sample input and output files, as well as the sample meta-file:


Using sqrt() and pow()

Since you will need to use the sqrt() and/or pow() functions to do this assignment, you need to make sure you also do the following:

1. Include the following line at the top of your source code:

#include <math.h>

2. When compiling your program, use the -lm switch:

gcc p1.c -lm

Q: What compiler will be used?

A: We will use g++ to compile your code. If something goes wrong, we will use the compiler mentioned in your meta-file.


Q: What is the marking scheme?

A: For this assignment, it's 100% correctness. We will test your programs on our own test cases, and how well the programs do on the test cases will determine your mark.


Wednesday, 13 September

Q: How big can N be for tasks 1 and 2?

A: Your programs will not be tested on unreasonably large N. Do not worry about overflow. Just handle the general case (to recap, for task 1, N >= 2 and for task 2, N >= 0).


Q: What is the range of values for the co-ordinates? Can they be negative?

A: The co-ordinates can be negative. Related to the question above, do not worry about unreasonably large co-ordinates (in the absolute sense).


Tuesday, 12 September

Q: For task 2, should we assume that the squares' edges are parallel/perpendicular to the x-axis and y-axis?

A: Yes.


Q: For task 2, should the edges of the bounding rectangle lie on or just outside the edges of the outermost squares?

A: On.


CSC181 Home Page | Last updated on 2000-09-14 by Ray Ortigas.