What This Document Is
This document contains a homework assignment (Homework Two, FP1 Questions and Answers) for CSC 347, Concepts of Programming Languages, at DePaul University. It presents a series of programming exercises designed to reinforce understanding of foundational functional programming concepts in Scala.
Why This Document Matters
This assignment is for students enrolled in CSC 347. Successful completion demonstrates proficiency in recursive function definition, working with data structures like pairs and triples, and adhering to specific coding constraints (no `while` loops or variable reassignment). It’s a graded component of the course, contributing to the overall assessment of a student’s grasp of functional programming principles.
Common Limitations or Challenges
This document provides the *problems* to be solved, not complete solutions. Students are expected to write the code themselves, adhering to the strict rules outlined in the document (SBT configuration, no alterations to tests, recursion only). It assumes prior knowledge of Scala syntax and basic functional programming concepts.
What This Document Provides
The document includes: eight individual programming exercises, each requiring the implementation of a specific Scala function. These exercises cover topics such as factorial calculation, Fibonacci sequence generation, tuple manipulation, list summation (both recursive and tail-recursive versions), and finding the maximum element in a list. It also includes detailed grading criteria and submission instructions. This preview does *not* include the solutions to the exercises, the test cases, or the complete SBT configuration.