CalcMe exercises solutions
Becoming familiar with the interface and basic commands
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).
Introduction to randomization
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.