6.8

Assignment 13

home work!

Programming Language ISL

Due Date Thurs 3/2 at 11:59pm

Possible Points 27

Purpose To begin using loops.

Graded Exercises

Be sure to use loops when appropriate.

Exercise 1 Design a function that will determine if every string in a list is alphabetic.

Exercise 2 Design a function that will output the absolute value of every number in a list of numbers.

; An [NEList-of X] is one of:
; - (cons X '())
; - (cons X [NEList-of X])

Exercise 3 Design a function that will return the largest number in a non-empty list of numbers.

Exercise 4 Use foldr and build-list to design a function that computes the factorial of a natural number.