Question: Exercise 3 Writing Functions: 1 . Write a function, c - > f , that will convert celsius to fahrenheit. F = ( 9 /

Exercise 3 Writing Functions:
1. Write a function, c->f, that will convert celsius to fahrenheit. F =(9/5)* C +32.
2. Write 3 functions, discrim, quad+, and quad-. Each function will have 3 parameters:
a, b and c that represent the coefficients of a quadratic equation: =\pm 24
2
discrim will be the part of the formula: b2-4ac.
Both quad+ and quad- will use the discrim function.
3. Write a function, quadrant, with 2 parameters: x and y that represent coordinates of a point in a
Cartesian coordinate system (x,y). Determine which quadrant the point is located in and return
one of the following: I, II, III, IV, x-axis, y-axis or origin.
4. Find the difference between the square of the sum and the sum of the squares of the
first N natural numbers.
The square of the sum of the first ten natural numbers is
(1+2+...+10)^2=55^2=3025.
The sum of the squares of the first ten natural numbers is
1^2+2^2+...+10^2=385.
Hence the difference between the square of the sum of the first ten natural
numbers and the sum of the squares of the first ten natural numbers is 3025-
385=2640.
Submit on Canvas, a Scheme (.ss) or Racket (.rkt) source file with Exercise 3 functions.
Document each exercise with line comments.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!