Skip to content

Commit

Permalink
Add instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmm committed Mar 26, 2019
1 parent 46fd0de commit 51ca163
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 48 deletions.
57 changes: 9 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,15 @@
# Internship 2019

<h1>Bring me the money</h1>
<h2>Instructions</h2>

**Given a user situated in location A, and 4 ATMS such that:**
1. The distance from userA to each ATM is:
1. 5m to ATM 1
2. 1h to ATM2
3. 30m to ATM3
4. 45m to ATM4
2. The distance between ATMs is:
1. From ATM 1 -> ATM 2: 40m
3. FROM ATM 1 -> ATM 4: 45m
4. FROM ATM 2 -> ATM 3: 15m
5. FROM ATM 3 -> ATM 1: 40m
6. FROM ATM 3 -> ATM 4: 15m
7. FROM ATM 4 -> ATM 2: 30m
1. Fork the repository with the internship subjects from Coera to your account: https://github.com/Coera/internship2019
(todo add link more details)
2. Clone the forked repository from your Github account
E.g.
3. Go to **subjects** folder and read carefully the instructions for the subject allocated to you
4. Write an application as specified in the subject requirements.
5. Commit & push the code to your forked repository
6. Create a Pull Request from your repository to the original one (from where your forked it)

3. Each ATM has the same amount of money (5k), and:

| ATM Name | Opening time | Closing time |
|----------|--------------|--------------|
| ATM 1 | 12:00 | 18:00 |
| ATM 2 | 10:00 | 17:00 |
| ATM 3 | 22:00 | 12:00 |
| ATM 4 | 17:00 | 01:00 |

4. User has 3 credit cards:

| Credit card | Fee | Withdraw limit | Expiration date| Available Amount |
|-------------|------|----------------|----------------|------------------|
| SILVER | 0.2% | 2k | 23.05.2020 | 20k |
| GOLD | 0.1% | 3k | 15.08.2018 | 25k |
| PLATINUM | 0% | 4k | 20.03.2019 | 3k |

5. Current date and time is: *19th March, 2019 - 11:30*

**Please write an application using Java/C# that:**
1. Determines what ATMs the user needs to use in order to withdraw 7.5k amount until 14:00 time with smallest fee available,
using only valid credit cards (that are not expired at the current date),
without passing through the same location twice.
Processing time for each ATM is negligible.

The application should implement the following method:

public List<Atm> getAtmsRoute() {
// TODO: add your code here
}


**Note:**

*All dates are in the same timezone.*

57 changes: 57 additions & 0 deletions subjects/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Internship 2019 subjects

<h2>Bring me the money</h2>

**Given a user situated in location A, and 4 ATMS such that:**
1. The walking time to reach each ATM:

| From | To | Duration (minutes) |
|----------------------|--------------|--------------------|
| User starting point | ATM 1 | 5 |
| User starting point | ATM 2 | 60 |
| User starting point | ATM 3 | 30 |
| User starting point | ATM 4 | 45 |
| ATM 1 | ATM 2 | 40 |
| ATM 1 | ATM 4 | 45 |
| ATM 2 | ATM 3 | 15 |
| ATM 3 | ATM 1 | 40 |
| ATM 3 | ATM 4 | 15 |
| ATM 4 | ATM 2 | 30 |

2. Each ATM has the same amount of money equal with 5000 lei, and the following schedule:

| ATM Name | Opening time | Closing time |
|----------|--------------|--------------|
| ATM 1 | 12:00 | 18:00 |
| ATM 2 | 10:00 | 17:00 |
| ATM 3 | 22:00 | 12:00 |
| ATM 4 | 17:00 | 01:00 |

3. User has 3 credit cards with the following properties:

| Credit card | Fee | Withdraw limit (lei) | Expiration date| Available Amount (lei)|
|-------------|------|----------------------|----------------|-----------------------|
| SILVER | 0.2% | 4500 | 23.05.2020 | 20000 |
| GOLD | 0.1% | 3000 | 15.08.2018 | 25000 |
| PLATINUM | 0% | 4000 | 20.03.2019 | 3000 |

4. Current date and time is: *19th March, 2019 - 11:30*

**Please write an application using either Java or C# programming language in order to:**
1. <h5>Subject code = _INT01_ </h5>
Determine what ATMs and in which order the user needs to access for withdrawing 7500 lei until 19th March, 2019 - 14:00, with smallest fee available,
using only valid credit cards (that are not expired at the current date),
without passing through the same location twice.
Processing time for each ATM is negligible.

The application should implement the following method:

public List<Atm> getAtmsRoute() {
// TODO: add your code here
}



**Note:**

*All dates are in the same timezone.*

0 comments on commit 51ca163

Please sign in to comment.