Giter Site home page Giter Site logo

kart-rank's Introduction

kart-rank

Projeto desafio Kark Rank

Passos para execução:

1 - Rodar o comando mvn install

2 - Ir para a pasta target e rodar o comando: java -cp rank-kart.jar br.com.kart.rank.AppMain “LOCAL DO ARQUIVO DE LOG”

OBS: O local do arquivo deve ser informado completo, ex: C:/Users/User/Documents/kart-rank-1.txt (No windows é necessário inverter as barras ou utilizar barras duplas)

Implementações

  • Posição Chegada, Código Piloto, Nome Piloto, Qtde Voltas Completadas e Tempo Total de Prova
  • Descobrir a melhor volta de cada piloto
  • Descobrir a melhor volta da corrida
  • Calcular a velocidade média de cada piloto durante toda corrida
  • Descobrir quanto tempo cada piloto chegou após o vencedor
  • Testes unitários

Saída do log

Position: 1 038 - F.MASSA Laps: 4 - Total Time: 04:11.578 - Best Lap:01:02.769 - Speed Average: 44.24575

Position: 2 002 - K.RAIKKONEN Laps: 4 - Total Time: 04:15.153 - Best Lap:01:03.076 - Speed Average: 43.62725 - Time Behind Winner: 00:03.575

Position: 3 033 - R.BARRICHELLO Laps: 4 - Total Time: 04:16.080 - Best Lap:01:03.716 - Speed Average: 43.468 - Time Behind Winner: 00:04.502

Position: 4 023 - M.WEBBER Laps: 4 - Total Time: 04:17.722 - Best Lap:01:04.216 - Speed Average: 43.191254 - Time Behind Winner: 00:06.144

Position: 5 026 - A.COSTA Laps: 4 - Total Time: 04:17.782 - Best Lap:01:02.152 - Speed Average: 43.7545 - Time Behind Winner: 00:06.204

Position: 6 015 - F.ALONSO Laps: 4 - Total Time: 04:54.221 - Best Lap:01:07.011 - Speed Average: 38.06625 - Time Behind Winner: 00:42.643

Position: 7 011 - S.VETTEL Laps: 3 - Total Time: 06:27.276 - Best Lap:01:18.097 - Speed Average: 25.745667 - Time Behind Winner: 02:15.698

Best Race Lap: 01:02.152 026 - A.COSTA
---------------------------------------------------------------------------------- ```

kart-rank's People

Contributors

alexvingg avatar

Watchers

 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.