Project 3 – area and volume
This project should help consolidate both testing and documentation for your applications.
You have a simple web service running on a server somewhere. It exists as a test bed for users to send data and receive it back. The service is expecting three strings to be entered, which are as follows:
- Username (string, non-null, must be more than 6 characters, no spaces)
- Password (string, non-null, must be more than 8 characters, no spaces, must have 1 capital, 1 number)
- Command string
The command string is a comma-separated list containing details of whether it is to be a volume or area calculation, the type of shape, and the parameter list.
Shape types
Type | Shape | Type | Shape |
0 | Circle/Sphere | 3 | Pentagon |
1 | Triangle/Pyramid | 4 | Octagon |
2 | Rectangle/Box | 5 | User-defined |
Volume or area
For the command string, area is given by true with the volume being false.
User-defined shape
This shape is up to you. It should be a shape is not currently on the list.
Formulae for calculations
You should use the following...