Write logically-correct, successfully-running programs that accomplish the ]items that follow. Here are some pointers to keep in mind for the second program:

In your programs, you should:

  1. variables.py -- In your first program, do the following:
  2. formulas.py -- In your second program, do the following:
    1. Write code to compute the area of a triangle, whose side lengths are 5.0, 6.0, and 7.0 centimeters. You will need double variables for side a, side b, side c, s, and the triangle's area.

      a, b, c = lengths of sides
      s = (a + b + c) / 2
      Triangle area = s(s-a)(s-b)(s-c)

      Use print statements to announce the values of the sides and resulting triangle area, skipping a line afterward. Use string concatenation with the variables.

      Side A is 5.0 centimeters.
      Side B is 6.0 centimeters.
      Side C is 7.0 centimeters.
      The triangle is 14.696969 square centimeters.

      (Result should match the correct answer to several decimal places, but it need not be exact.)
    2. Write code to compute the compound amount, after a period of time, for a monetary investment that earns interest. Your initial investment is $8000.00.With an interest rate of 6.5% per year and 4 compounding periods per year, how much will your investment be after 7 years? You will need variables for the initial investment, interest rate, number of compounding periods in a year, and the time frame.

      t = time, in years
      P = initial investment
      r = interest rate, as a decimal (e.g. for a rate of 7.9%, r = 0.079)
      n = number of interest compounding periods per year
      A(t) = the compounded amount of your investment at time t


      Use print statements to announce the values of the initial investment, the interest rate, the number of compounding periods in a year, the time, and the compound amount (in place of the blank), skipping a line afterward. Use string concatenation with the variables.

      The initial investment is 8000.0 dollars.
      The interest rate is 6.5 percent per year.
      There are 4.0 compounding periods in a year.
      The time frame is 7.0 years.
      After that time, you will have 12563.354888333639 dollars.
                              
In at least 150 words, please address the following questions in memo.txt:
  1. How did the process of creating these programs go for you?
  2. What were your main challenges and how did you overcome them?
  3. What did you learn that may be of use as you move along in this class?