Write logically-correct, successfully-running programs that accomplish the ]items that follow. Here are some pointers to keep in mind for the second program:
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 sidesUse 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.
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 yearsUse 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.