CalcMe exercises solutions

Note: There are several live demos on this page, identified with the label INTERACTIVE DEMO. If you click into the area containing the CalcMe parameters, it will launch a new browser window containing a CalcMe session with all the operations you can see. Try it out, change the parameters or options. You won't break anything.

Write a CalcMe algorithm that does the following actions in the order they appear:

  • Define the variable y as the quotient of 39 divided by 7 and the variable z as the remainder of 63 divided by 11.
  • Specify the variable y as a prime number and factor the variable z.
  • Define p as a 2nd degree polynomial in x with roots y and z.
  • Evaluate p in 0 and -3 and save the results in two variables, then find the greater common divisor of these results.
  • Illustrate the graph of p and cos(y·x+z).

INTERACTIVE DEMO

Write a CalcMe algorithm that does the following actions in the order they appear:

  • Define a list L of 4 random numbers between –10 and 10 excluding 0.
  • Find the least common multiple of two random different numbers of the list.
  • Define a random number x as a decimal number (to the second decimal place) between 7 and 15 that is not an integer number.
  • Define a random number y as a rational number (to the first decimal place) between 3.2 and 6.8 that is not an integer number.

INTERACTIVE DEMO