Write a program in any language:
The user enters a number from 1 to 9999 (the withdrawal amount at the ATM). It is necessary to display the entered amount on the screen in words and at the end write the name of the currency (ruble) with the correct ending.
For example: 7431 - seven thousand four hundred thirty-one rubles, 2149 - two thousand one hundred forty-nine rubles, 15 - fifteen rubles, 3 - three rubles.
Assignment with * (asterisk): the first word must be written with a capital letter (7431 - Seven thousand four hundred thirty-one rubles, 2149 - Two thousand one hundred forty-nine rubles, 15 - Fifteen rubles, 3 - Three rubles)
Pluralize task
A simple program for solving the problem of pluralized values using a precompiled dictionary of pluralized values
To use the program, you need to follow these steps:
- Compile the executable file of the program from the source code or use the precompiled version
- Run the program
- Enter number
- Get the execution result
To develop this program, a development environment called Clion was used. Compilation was performed using the CMake tool. You can use any development environment to open the main.cpp source code file. For your convenience, in the cmake-build-debug folder you can find a precompiled version of the program.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
