Question: Q2. Using variables for arithmetic (6 pts. total) In this section, you'll create some more variables, but these will involve some more complicated arithmetic operations.

Q2. Using variables for arithmetic (6 pts. total) In this section, you'll create some more variables, but these will involve some more complicated arithmetic operations. Specifically, cell below defines a set of starting variables; you'll need to use these variables in arithmetic operations to create new variables. Using a,b,c, and d, create the following variables: - Set ans1 to the result of adding a,b,c, and d together. - Set ans2 to the result of multiplying a,b,c, and d together. - Set ans 3 to the result of raising a to the power of d. (Recall that can be used for exponentiation.) - Set ans 4 to the result of dividing ans 3 by ans 1 . - Set ans5 to the result of checking whether ans1 > ans4. - Set ans 6 to the result of checking whether ans2 is even. Remember that you can use the operator to check whether a given number is even (i.e whether the remainder of that number divided by 2 is 0 .) a=2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
