Cash machine simulator with the following options:
- Info: Showing the information about current balance of the client (all currency accounts);
- Deposit: choosing the currency, currency value and quantity of currency values (information will be stored during the session);
- Withdraw: choosing the currency and amount (currency values and quantity of them will be deducted from the account (greedy algorithm is used for summing up the amount requested from available nominals and their quantity in the CashMachine));
- Exit: closing the application. There will be shown a confirmation question before the actual session termination. Also, user has an option of terminating the CashMachine working session at anytime by typing the word "exit".
Program generates a encrypted password that was previously set up for a game session access. Works through the command line and includes the following Options:
- Start Session - generates a crypted password (from a normal password) that is set up for an account access (only on allowed days, currently on Wed and Sun) and logs into file - time of the game session start;
- End Session- logs an end time of a game session and counts a total amount of time spent on current session (command is not executing in case if the session hasn't been initialized by "1. Start Session" command before);
- Exit - closing the application.
Program verifies if a wall of a specified configuration can be constructed from some set of bricks. Works from both, console input and file data inputStream. The format for input data is as follows:
- Width and height of wall's shape matrix - two positive integers (H and W separated by space on their own line);
- Wall's shape matrix - H strings each of length W, formed of '1' - brick and '0' - gap in the wall (every string on its own line);
- Quantity of types of bricks - the positive integer C;
- List of bricks - C lines each containing three positive integers separated by space - width of brick, height of brick and count of such bricks in the set.