Check for Mistakes in this Word Problem: calc-pencils
Directions: All students are given five (5) pencils at the beginning of the school year.
Write a function called calc-pencils that takes the number of students in the school and
calculates the number of pencils needed for that school.
Contract and Purpose Statement
Every contract has three parts ...
;calc-pencils:number→number
; Takes a number of students and gives the number of pencils
Examples
Write some examples, then circle and label what changes ...
(EXAMPLE (calc-pencils100)(* 100 5)
(EXAMPLE (calc-pencils40)(* 40 6)
Definition
Write the definition, giving variable names to all your input values ...
(define (calculate-pencilsp)(* p 5))