Tutorials are normally released on Thursday of the week before they are due. In Week 2, your tutor will bring printouts of this page. In future weeks you will need to bring your own printout.
During each tutorial, your tutor will choose a pair of students to present the following week. If you know you will be away at some time during the session, try to ensure you are not allocated to that week. You should be prepared for the possibility that you might have to give the presentation on your own (if your partner forgets or is unable to show up due to illness, etc.)
The topic for each week's presentation will appear at the end of the previous week's tutorial questions.
mkdir
cd
pwd
ls
cp
mv
rm
rmdir
man
passwd
Which of the following are valid variable names in C? Which are not?
THX1138
2for1
MrBean
My Space
still_counting
^oo^
_MEMLIMIT
% Enter a number: 42 The square root of 42.00 is 6.48 %How should your program behave when a negative number is entered?
pow()
function, described
here).
heron.c
.
What would you type on the UNIX command line to compile this program,
producing the object file heron
?
How would you then run this program?
a, b
and c
of a triangle, and computes the area of the triangle
using Heron's formula:
area = sqrt(s(s-a)(s-b)(s-c))where
s
is the "semi-perimeter"
s = (a + b + c)/2.(Note: You will be implementing and modifying this program during the Lab).