Ad
  • Default User Avatar

    C++ translation - please approve if ok.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Yep, thanks :)

  • Default User Avatar

    Thers is still problem with expected formatting and its description.

    "EVERYTHING, including values in the equations appearing as coefficients, must be rounded to THREE decimal places. However, if the value is whole, only show one decimal place (for example => -16 becomes -16.0, not -16.000)" implicates that there should be 3 or 1 decimal place, but I've got error:

    Expected string length 31 but was 32. Strings differ at index 23.
    Expected: "h(t) = -16.0t^2 + 23.84t + 64.0"
    But was: "h(t) = -16.0t^2 + 23.840t + 64.0"
    ----------------------------------^

    EDIT:
    My next attempt, with 1, 2 or 3 decimal places:

    Expected string length 28 but was 30. Strings differ at index 19.
    Expected: "h(t) = -16.0t^2 + 0t + 161.0"
    But was: "h(t) = -16.0t^2 + 0.0t + 161.0"
    ------------------------------^

    So it excpected no decimal places now.