This document provides a 2 week lab assignment for a functional programming course. The assignment requires students to write 5 Scheme Lisp programs: 1) to compute factorials, 2) to compute the Nth Fibonacci number, 3) to find the highest common factor of two numbers, 4) to find the largest of N numbers, and 5) to compute the sum of N numbers.
This document provides a 2 week lab assignment for a functional programming course. The assignment requires students to write 5 Scheme Lisp programs: 1) to compute factorials, 2) to compute the Nth Fibonacci number, 3) to find the highest common factor of two numbers, 4) to find the largest of N numbers, and 5) to compute the sum of N numbers.
This document provides a 2 week lab assignment for a functional programming course. The assignment requires students to write 5 Scheme Lisp programs: 1) to compute factorials, 2) to compute the Nth Fibonacci number, 3) to find the highest common factor of two numbers, 4) to find the largest of N numbers, and 5) to compute the sum of N numbers.
1. Write a Scheme Lisp Program to compute factorial of a natural number.
2. Write a Scheme Lisp Program to compute N-th Fibonacci Number, where N is a natural number. 3. Write a Scheme Lisp Program to compute the HCF of two natural numbers N1 and N2 (N1 >= N2). 4. Write a Scheme Lisp Program to find the largest among N natural numbers. 5. Write a Scheme Lisp Program to compute the sum of N natural numbers.