Skip to content

DevLab4me/MyWorks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

MyWorks

CashMachine

Cash machine simulator with the following options:

  1. Info: Showing the information about current balance of the client (all currency accounts);
  2. Deposit: choosing the currency, currency value and quantity of currency values (information will be stored during the session);
  3. 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));
  4. 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".

RelaxTime

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:

  1. 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;
  2. 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);
  3. Exit - closing the application.

WallOfBricks

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:

  1. Width and height of wall's shape matrix - two positive integers (H and W separated by space on their own line);
  2. 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);
  3. Quantity of types of bricks - the positive integer C;
  4. 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.

About

Developing console applications for personal use (J2SE)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages