Unit 12 Practice

Appropriately initialize the variables 'sumNum' and 'sumDenom' to represent the numerator and denominator of the sum above in simplest form.

Appropriately initialize the variables 'difNum' and 'difDenom' to represent the numerator and denominator of the difference above in simplest form.

Appropriately initialize the variables 'prodNum' and 'prodDenom' to represent the numerator and denominator of the product above in simplest form.

Appropriately initialize the variables 'quoNum' and 'quoDenom' to represent the numerator and denominator of the quotient above in simplest form.

Evaluate    (3 + 8i) + (-4 + 2i)


Appropriately initialize values for 'sumReal' and 'sumImag' that represent the real and imaginary parts for the sum above.

Evaluate    (3 - 6i) - (2 - 5i)


Appropriately initialize values for 'difReal' and 'difImag' that represent the real and imaginary parts for the difference above.

Evaluate    (3 + 6i) (4 - 5i)


Appropriately initialize values for 'prodReal' and 'prodImag' that represent the real and imaginary parts for the product above.

For the quotient below, appropriately initialize the values for 'quoReal' and 'quoImag'.  

Is 39 prime?  Appropriately initialize the value for 'isItPrime'.  If the number is prime, assign the value true.  If the number is not prime, assign the value false.

Is 37 prime?  Appropriately initialize the value for 'isItPrime'.  If the number is prime, assign the value true.  If the number is not prime, assign the value false.

What are the first 10 prime numbers?  Appropriately assign the values of the array called 'primes'

Note: How to assign values to an array:  primes = [1,2,3,4,5]

What are the prime factors of 120?  Appropriately initialize the values of an array called 'primeFactors' that represents the prime factors of 120.  The values should be listed once and in ascending order (from least to greatest).

Suppose a = 20 and b = 30.  Initialize the values for 'lcm' and 'gcf' that represent the least common multiple and greatest common factor of 'a' and 'b'.