Lesson 04: Coding Exercise

Let’s start applying what we’ve learned. In this coding exercise, I want you to do the following:

  1. Create an object that is an integer
  2. Create an object that is a float
  3. Convert the integer to a float
  4. Convert the float to an integer
  5. Multiply the original integer by 3.
  6. Divide the result by 7. (Hint, you will need to create a new object to do this.)
  7. Figure out the remainder of 98 divided by 3.
  8. Figure out how many times 3 can be fully divided into 98.

If you get stuck, check out Lesson 04: Cheat Sheet. Once you’ve finished this, check out Lesson 04: Quiz.