もちろんです。ここに関数があります。
```cpp
float calcPerimeter(float sideLength) //The side lenght of the square
{
    return 4 * sideLength;
}
```
Sure. Here is the function, and you might change the type.
```cpp
float calcPerimeter(float sideLength) //The side lenght of the square
{
    return 4 * sideLength;
}
```