Roller Coaster Performance Calculation

Write a program to calculate the performance of a roller coaster. Assume the following formulas:

  • Comfort: Minimum of 1.0, 1.0 / BumpsPerSecond, 1.0 / MaxSpeed.
  • Overall Performance: ScaleFactor * ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: