|
Due Sep.02 (Wed) (hardcopy, and on D2L) Your name and the assignment-number must be in a comment at the start of the file.
(2pts)
Which languages might be involved in
setting up an on-line
order system, for a store?
(Feel free to chat with people who have taken Software Engineering.)
Which of the five example programs above is most “typical” do you think, of the sort of programs most programmers tend to work on?
hint: Your program need not be useful at all, so long as it illustrates this point.
Write a program which has an illegal `return` statement that is never ever reachable.
(3pts) Open DrRacket (either in labs, or you can download it to your own computer from racket-lang.org). The first time you start DrRacket, it will ask you to choose a language; select Language > Use Language... > Teaching Languages > Beginning Student, for now.
Type each of the following expressions into the top window, and evaluate them (Racket > Run). Paste the results into your answer file.
(or (string=? "Miss" (substring "Mississippi" 3 6)) (> 4 3) (/ 5 0)) |
1 Short correct answers get more credit than long correct answers; use a single word when possible. ↩
2 Why are "type-safe" and "sound type-checker" two ways of saying the same thing? The terms “Soundness” and “completeness” are general traits of any theorem-proving system. ↩
©2014, Ian Barland, Radford University Last modified 2014.Sep.27 (Sat) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |