Course Assignments for CS 3210
Spring 2016
Dr. Judith Gurka
Metropolitan State University of Denver
This program returns the factorial of a given non-negative integer or NIL
if the input is negative or not an integer.
This program checks to see if a word is in a list. If so, the word is moved to the front of the list. If not, the word is appended to the front of the list.
This program checks a list of numbers and returns the amount of numbers divisible by five.
This program takes as input a list of integers and returns a new list with all the negative entries removed.
This program searches through a list for a given integer and returns the number of matches found in all lists, including embedded lists
This program returns whether a list of number is sorted in strictly ascending order with no duplicate entries.
This program takes a temperature in the form of a number and a unit (either Celsius or Fahrenheit) and returns the temperature value converted to the other unit.
This program returns a list that duplicates each input element into a pair of adjacent elements in the output list.
This program returns a list that removes an element if it is identical to the element directly previous in a list with the comparison done in pairs of two (maximum of one deletion per pair).
This program takes a list potentially containing nested lists and returns all embedded elements as members of a new top-tier list with NIL
(the empty list) not being returned as an element of the new list.
This program contains three functions that each emulate a traditional set operation: member, which returns whether a word is an element of a given list; union, which returns the union of two lists as a new list; and intersect, which returns the intersection of two lists as a new list.
This program checks whether a list is a valid expression of the form: number - operator - number with number representing an integer and operator being one of the following: plus, minus, times, or dividedby. Each expression can contain nested expressions on either side.