# [Java (JDK 10)], 222 bytes

<!-- language-all: lang-java -->

    s->new double[]{5.8,2.7,1.85,1.45,1.2,.7,3.4,2.1,2.8,2}[java.util.Arrays.asList("|,||,| |,|+|,|++|,|+++|,|r,||r,|f,||f".split(",")).indexOf(s.replace("/","|").replace("g",""))]*(278-s.charAt(0))/154*(s.endsWith("g")?.75:1)

[Try it online!][TIO-jiaala7y]

[Java (JDK 10)]: http://jdk.java.net/
[TIO-jiaala7y]: https://tio.run/##XZNNj9owEIbv/IpRKqQYgiEUBNotWyGt9tSqh1bqAXFwEztrmi/ZznbRwm@n4yQCGxSP/fidGQ/W@MDe2OSQ/r3Ioq6UgQMybYzMqWjKxMiqpKPHgSsa/m7sXpIzreE7kyV8DADq5k8uE9CGGZzeKplCgVr40yhZZrs9MJVp0roC/KqeK/TnL/0ZXzqvJxCwuejJU8n/Qdp67PYfS7qO5nQVxXS9RLOwZh7hxme6QCHGgQ7n3a30rVLsqCnT36Q2YXCKTvgBjrEdnbFWoYBD4CQCqutconcUEEJlmfL3HyLUVPE6ZwkPgykqp4DcNjLcQN/9KJyv1hNNk1emtiacETKNl4sRxvIy1b@lebW@5CtdLR9icnlsb@B6LYZro2HTXwwAnhFdl@4aXBh7cEceKjedC8IVXMhcIfMqyLwSMr@G7K4Il5WX1CPhSS5NnaW7BhfGHtyRh8pN54JwBRfcWjwAj8Y@3aPPykvqkfffb3TuOuaZJ7Jg@UulCmZAdNMG7FPxpDCY0U/2F5AuEF37V9g220PXcuTacb2muG5ym7FLTbspFJTVdX7c6u7FhjaY9Jkx9qgNL2jVGFpjFiPCYDiJZ3qoh2UQtSdFfeY@5jwYWHO@/Ac "Java (JDK 10) – Try It Online"

## Credits

* -1 byte thanks to [Kevin Cruijssen](https://codegolf.stackexchange.com/users/52210/kevin-cruijssen).