CS 2734
Computer Organization II
You will meet in 3.02.04SB for both laboratory 4a (2/10/97) and laboratory 4b (2/12/97). During both sessions, 10 workstations will be reserved for checkoff only. Do not log into these workstations unless you are ready to be checked off or everyone who is ready to be checked off has been checked off. You must log off of these workstations after being checked off so that others can have a chance. Prior to the laboratory, you should do the following:
int calsigndot(int a[], int n, int x)
{
int i;
int sum;
sum = 0;
for (i = 0; i < n; i++) {
if (a[i] > x)
sum = sum + a[i]*a[i];
else
sum = sum - a[i]*a[i];
}
return sum;
}
For Checkoff:
calsigndot data.file 5 21
(You may be asked to run with a couple of different values for the
last two command line arguments.
Revision Date: 2/7/97