Currencies

Report a typo

Declare an enum Currency.

It is to include the following currency codes (according to ISO 4217):

  • USD is United States dollar
  • EUR is Euro
  • GBP is Pound sterling
  • RUB is Russian ruble
  • UAH is Ukrainian hryvnia
  • KZT is Kazakhstani tenge
  • CAD is Canadian dollar
  • JPY is Japanese yen
  • CNY is Chinese yuan

You need to include all of the above codes. Do not include any others. You can declare the constants in the enum in any order.

Write a program in Kotlin
// declare your enum here
___

Create a free account to access the full topic