Giter Club home page Giter Club logo

epam-javacore's Introduction

EPAM Java Core Training 2018

Repo for homework

Task #1 Traffic light

Solution

Create a traffic light that outputs a signal colour. You enter a minute (from zero to n) and get a current signal light. First two minutes is red light, next three minutes is yellow and last five minutes is green.

Task #2 Strings

Solution

Given a word. Output its:

  1. third symbol;
  2. last symbol;
  3. K-th symbol;
  4. Given a sentence. Find the amount of identical adjacent symbols in it;
  5. Given a word. Flip its second and fifth letters;
  6. Enter a sentence from keyboard. Flip its letters. Example: this code is great -> siht edoc si taerg.

Task #3 Arrays of Arrays

Solution

  1. Print a string made of four characters from corners of an array (in any order).
  2. Write a program that prints a word, built by symbols of several following indexes from some line of an array.
  3. Given a two-dimensional array 5 * 5, filled with letters. Print a word, built by array elements marked with stars while reading them: A) Left to right in every row, B) Up to down in every column.
  4. Print words, built by even elements of every array row.
  5. Print words, built by odd elements of every array column.

Task #4 Recursion

Solution

  1. Write a recursive function for calculating factorial of a natural number N;
  2. Write a recursive function for calculating power A of a real number N (N - natural number);
  3. Write a recursive function: a) for calculating sum of digits of a natural number; b) for calculating amount of digits of a natural number.

Task #5 ATM

Solution

Create a thread-safe Automated Teller Machine.

Task #6 Lambda

Solution

Create a functional interface and use it with lambda expression.

Task #7 Sea Battle

Solution

Create a Sea Battle game using Maven, Factory pattern and AI. 2D version.

Task #8 Algorithms

Solution

Create a realization of the following algorithms:

  1. Bubble sort
  2. Binary search
  3. Merge sort
  4. Radix sort
  5. Quick sort

Task #9 Hippodrome

Solution

Create a hippodrome. Player makes a bet on a horse. Horses have their own constant speed and random acceleration speed. Each running horse represents a unique thread, so that all horses run in a parallel fashion.

epam-javacore's People

Contributors

badgerbadgerbadgerbadgerbadgerbadgerbad avatar michael-kolbasov avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.