Difference between revisions of "Dynamic Spreadsheet Assignment"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
=Code To Implement= | =Code To Implement= | ||
− | {{RacketToImplement|spreadsheet| | + | {{RacketToImplement|spreadsheet|string->cell<br>csv->spreadsheet<br>row-count<br>row-at sheet<br>sum-row|spreadsheet}} |
==string->cell== | ==string->cell== | ||
− | + | (define (string->cell s) | |
− | (error 'not-yet-implemented)) | + | (error 'not-yet-implemented)) |
==csv->spreadsheet== | ==csv->spreadsheet== | ||
− | + | (define (csv->spreadsheet matrix) | |
− | + | (error 'not-yet-implemented)) | |
− | (define | ||
− | |||
− | |||
− | |||
==row-count== | ==row-count== | ||
− | + | (define (row-count sheet) | |
− | + | (error 'not-yet-implemented)) | |
− | (define ( | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==row-at== | ==row-at== | ||
− | + | (define (row-at sheet row-index) | |
+ | (error 'not-yet-implemented)) | ||
==sum-row== | ==sum-row== | ||
− | + | (define (sum-row sheet row-index) | |
− | + | (error 'not-yet-implemented)) | |
− | (define ( | ||
− | |||
=Test= | =Test= | ||
{{RacketUnitTest|spreadsheet_test|spreadsheet}} | {{RacketUnitTest|spreadsheet_test|spreadsheet}} |
Revision as of 05:44, 30 March 2022
Contents
Motivation
Code To Use
- #t true
- #f false
- define-syntax
- lambda
- procedure?
- procedure-arity number of arguments a function takes Arity on Wikipedia
- pair?
- cons
- car
- cdr
- values
- raise
Code To Implement
file: | src/main/racket/spreadsheet/spreadsheet.rkt | |
functions: | string->cell csv->spreadsheet row-count row-at sheet sum-row |
string->cell
(define (string->cell s) (error 'not-yet-implemented))
csv->spreadsheet
(define (csv->spreadsheet matrix) (error 'not-yet-implemented))
row-count
(define (row-count sheet) (error 'not-yet-implemented))
row-at
(define (row-at sheet row-index) (error 'not-yet-implemented))
sum-row
(define (sum-row sheet row-index) (error 'not-yet-implemented))
Test
file: | spreadsheet_test.rkt | Test |
source folder: | src/test/racket/spreadsheet |
note: ensure that you have removed all printing to receive credit for any assignment.