Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-2520-checkpoints-group-1 #2511

Merged
merged 10 commits into from
May 15, 2024
36 changes: 36 additions & 0 deletions subjects/java/checkpoints/good-bye-mars/README.md
nprimo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## GoodbyeMars

### Instructions

In a file named `GoodbyeMars.java` write a function `goodbyeMars` that returns the string 'Good bye Mars !'.

### Expected Functions

```java
public class GoodbyeMars {
public static String goodbyeMars() {
// your code here
}
}
```

### Usage

Here is a possible `ExerciseRunner.java` to test your function :

```java
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println(GoodbyeMars.goodbyeMars());
}
}
```

and its output :

```shell
$ javac *.java -d build
$ java -cp build ExerciseRunner
Good bye Mars !
nprimo marked this conversation as resolved.
Show resolved Hide resolved
$
```
36 changes: 36 additions & 0 deletions subjects/java/checkpoints/system-logger/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## SystemLogger

### Instructions

In a file named `SystemLog.java` write a function `systemLog` that takes a String message as a parameter and returns the given message concatenated with 'System Log: '

### Expected Functions

```java
public class SystemLog {
public static String systemLog(String message) {
// your code here
}
}
```

### Usage

Here is a possible `ExerciseRunner.java` to test your function :

```java
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println(SystemLog.systemLog('message'));
nprimo marked this conversation as resolved.
Show resolved Hide resolved
}
}
```

and its output :

```shell
$ javac *.java -d build
$ java -cp build ExerciseRunner
System Log: message
$
```
42 changes: 42 additions & 0 deletions subjects/java/checkpoints/universal-greeting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## UniversalGreeting

### Instructions

In a file named `UniversalGreeting.java` write a function `greeting` that takes a String language as a parameter and returns a greeting message based on the language as follows:

`FR` : `Bonjour comment allez-vous?`
nprimo marked this conversation as resolved.
Show resolved Hide resolved
`EN`: `Hello, How are you?`
`ES` : `Hola, cómo estás?`

and return an empty string in any other case.

nprimo marked this conversation as resolved.
Show resolved Hide resolved
### Expected Functions

```java
public class UniversalGreeting {
public static String greeting(String message) {
// your code here
}
}
```

### Usage

Here is a possible `ExerciseRunner.java` to test your function :

```java
public class ExerciseRunner {
public static void main(String[] args) {
System.out.println(UniversalGreeting.greeting('EN'));
nprimo marked this conversation as resolved.
Show resolved Hide resolved
}
}
```

and its output :

```shell
$ javac *.java -d build
$ java -cp build ExerciseRunner
Hello, How are you
nprimo marked this conversation as resolved.
Show resolved Hide resolved
$
```