| This is a course web page of David Casperson |
|
Aside from the language presentations, assignments in CPSC 320: Progrramming Languaages are generally small and first mentioned in lectures. Assignments are to be submitted by e-mail to David.Casperson@unbc.ca.
Homework questions are usually assigned prior to being given a due
date.
Questions that have been assigned but not yet
give a due date can be found on this page.
Questions that have been given a due date can be found
here.
Look up Noam Chomsky in Wikipedia or elsewhere, and write a brief paragraph explaining who he is, and why he is relevant to Computer Science.
Now assigned a due-date
Now assigned a due-date
What English words match the java
regular expression [m-o]{2,4}?
(Take this to mean where the regular expression matches the entire word.)
Now assigned a due-date
a[0],
a[1], …,
a[n-1],
the maxSubseqenceSum algorithm finds
the maximum value of
public static double maxSubseqenceSum(double [] data)
{
final int n = data.length ;
double maxSum = 0.0 ; double thisSum = 0.0 ;
for (int i=0; i<n; ++i)
{
thisSum = Math.max(thisSum+data[i],0.0) ;
maxSum = Math.max(thisSum,maxSum) ;
}
return maxSum ;
}fall-2024