Write examples of custom functional and non-functional requirements for this page.
Write examples of business requirements for this page.
Write requirements for an application that calculates the area of a triangle using Heron's formula.
Requirements presented by the customer:
We would like to have an application which will show us if the entered values will give a triangle as an outcome, and it will also show the circumference and area of the triangle.
In addition, we want to be able to receive reports based on the entered values and the results, so that we know which values have been used the most (on average) and which triangles were returned the most.
Specification:
The screen shown in the web application is shown below.
The user is allowed to change the fields Side 1, Side 2, and Side 3 with values , , .
To calculate the dimensions of the triangle, there is the button called “Calculate”.
If the user clicks “Calculate”, values appear in the Circumference and Area fields; also, a value is selected for Triangle field options.
If the user clicks “Calculate, the database is queried to check if there is an entry with the values of the given fields. If yes, the values for Triangle, Circumference and Areas are pulled from the database.
For Triangle “Yes” is selected if the length of any two sides combined is not less than the length of the third side.
For Triangle “No” is selected if the length of any two sides combined is less than the length of the third side.
The Circumference field is filled with the sum of fields Side 1, Side 2, and Side 3.
The Area field is filled with the value which is calculated by using the following formula: √(p-a)(pb)( p-c)where p=triangle’s circumference (Heron’s formula).
If the user wants to see how the triangle looks like based on the entered values, the user clicks the Preview button. The preview is shown in the preview area.