-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning Rust
By :

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:
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.
Type | Shape | Type | Shape |
0 | Circle/Sphere | 3 | Pentagon |
1 | Triangle/Pyramid | 4 | Octagon |
2 | Rectangle/Box | 5 | User-defined |
For the command string, area is given by true with the volume being false.
This shape is up to you. It should be a shape is not currently on the list.
You should use the following...