As a fan of math, I want to model a calculator which accepts add, subtract, multiply, divide, cancel and exit as commands, So that I can do basic mathematics.
- Input is integer
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| contains the "web" middleware group. Now create something great! |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class BookController extends Controller | |
{ | |
/** | |
* Display a listing of the resource. |
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This generated file contains a sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* User Manual available at https://docs.gradle.org/5.5.1/userguide/tutorial_java_projects.html | |
*/ | |
plugins { | |
// Apply the java plugin to add support for Java |
package com.gojek.bootcamp.calculator; | |
public class App { | |
public static void main(String[] args) {} | |
} |
## Usage | |
Write this file into `Main.java`: | |
```java | |
import com.gojek.bootcamp.money.Money; | |
public class Main { | |
public static void main(String[] args) { | |
} |
As a fan of geometry, I want to model a line based on points consisting of (x, y) co-ordinates using the cartesian system, so that I can calculate its length. Also, I want to compare two lines for equality based on the end points so that I know when two lines are the equal.
#!/bin/sh | |
./gradlew goJF |
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This generated file contains a sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* User Manual available at https://docs.gradle.org/5.5.1/userguide/tutorial_java_projects.html | |
*/ | |
plugins { | |
// Apply the java plugin to add support for Java |