CS 3304
Homework Assignment 1
Given: July 1, 1997 Due: July 8, 1997
The point value of each problem is shown in [ ]. The assignment must be received by the beginning of class on July 8, 1997. See syllabus for late policy.
When the problem asks for an explanation, give a clearly written justification of your answer.
Chapter 2, Problem 18. You are asked whether a programming language should be designed by a committee or by a single master architect. Give at least two pros and cons for each approach. Then give your opinion and justify it.
While reading Chapter 2, locate 8 characteristics that a programming language may have. List each characteristic along with the first programming language that had the characteristic and the designer(s) of that language.
Chapter 3, Problem 2, parts c and d.
Chapter 3, Problem 4.
Chapter 3, Problem 6.
Chapter 3, Problem 9.
Chapter 3, Problem 12, part f.
Chapter 3, Problem 14.
Derive the weakest precondition for the following loop and the given postcondition:
B<>while ¯Assume thata > bdo ¯
a := a + 1¯
b := b + 2
{a + b = c}
a, b, and c
are integer variables.
Also argue that execution of the loop always terminates.
Chapter 3, Problem 15, parts d.
This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
The command line arguments were:
latex2html -split 0 -t CS 3304 Homework Assignment 1 homework1.tex.
The translation was initiated by cs3304sm class account on Mon Jun 30 14:11:13 EDT 1997