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 ...
Takes a number of students and gives the number of pencils
Write some examples, then circle and label what changes ...
calc-pencils100)(* 100 5)
calc-pencils40)(* 40 6)
Write the definition, giving variable names to all your input values ...
(define (
calculate-pencilsp)(* p 5))