The other measure that we need to point our telescope is called Declination, which is comparable to latitude. Declination is measured in degrees and can be a maximum of 90 degrees for the north pole to -90 degrees to the south pole. A line straight out from the center of the earth through the equator is 0 degrees. In this activity, we will collect the value for Declination from the user and store the value in a number variable and then output the answer. We'll use it later for our virtual telescope.
The code should look like this:
number declination = cast(number, input("Enter declination in degrees: ")) output "Declination: " + declination
When you are ready, select the green Run Program button below the editor on the right (second in the tab order).
When we perform division on integers, if the dividend does not divide evenly by the divisor there is a remainder. In computer programming, if we want to get the value of the remainder, we use the modulus operator, which in Quorum is: mod. So if we divide 10 by 3 using the division operator (10 / 3) we get 3. If we use the modulus operator instead (10 mod 3) we get the remainder 1. Write code to use these operators with integer variables. What will the modulus be if the numbers divide evenly?