Coder Social home page Coder Social logo

renting-a-car's Introduction

Story: Renting a car

Use Case 01

As a system user

In order to get an available car in a specific category

Given a car category containing 3 different cars

When I check if there's a car available

Then it should choose randomly a car from the category chosen

Use Case 02

As a system user

In order to calculate the final renting price

Given a customer who wants to rent a car for 5 days

And he is 50 years old

When he chooses a car category that costs $37.6 per day

Then I must add the Tax of his age which is 30% to the car category price

Then the final formula will be ((price per day * Tax) * number of days)

And the final result will be ((37.6 * 1.3) * 5)= 244.4

And the final price will be printed in Brazilian Portuguese format as "R$ 244,40"

Use Case 03

As a system user

In order to register a renting transaction

Given a registered customer who is 50 years old

And a car model that costs $37.6 per day

And a delivery date that is for 05 days behind

And given an actual date 05/11/2020

When I rent a car I should see the customer data

And the car selected

And the final price which will be R$ 244,40

And DueDate which will be printed in Brazilian Portuguese format "10 de Novembro de 2020"

renting-a-car's People

Contributors

antoniolopesg avatar

Watchers

James Cloos avatar  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.