Semiperimeter, what is that?
The semiperimeter is just ½ the perimeter of a triangle (it is denoted by the letter s; s = ½(a+b+c)). Besides just being a really nice proof (because all computer scientist also loves math!), it is actually useful to calculate the area of a triangle. Normally we use the formula (A = ½ bh). But in a lot of triangles, we do not know what the height is and don’t want to calculate it; we only know the length of the three sides. It can be proven (using Heron's formula) that the area of a triangle can also be calculated using:
Here is the problem
Create a program that lets the user enter any combination of 3 pieces of information about a triangle (side length or angle) but not 3 angles. The user can then display information about the area, perimeter, and type. Since the application is about triangles, which have a clear set of related calculations and properties, a Triangle class will be implemented. It will have at least the following:
Two part assignment
This is a 2-week assignment:
Each week ENSURE you include the Marking Rubric
Things to note