Task 6 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

11.1 Enums — total value of coins

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in totalCents so that it returns the total value of the coins in cents.

Each constant carries its own value — ask for it with getCents() rather than hard-coding amounts. The program prints 36 and then 0.

Your solution