For example racko points empty 0 1 cs 116 fall

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e awarded for each number in the increasing sequence that starts with the first card in the list. (Any further increasing sequences in the list do not earn any points.) Use accumulative recursion to complete the Scheme function racko-points, that consumes a list of distinct numbers between 1 and 60, inclusive (called seq), and produces the score for seq. For example, • (racko-points empty) => 0 1 CS 116 Fall 2012 Assignment 03 Due at 4:00pm on Tuesday, October 9 (Note special date) • • (racko-points (list 9 2 20 40 60)) => 5 (racko-points (list 5 10 48 2 9 17 40 60)) => 15 2. On Assignment 01, Question 3, you were required to find a winner in a...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online