Skip to content

Nimish-Singh/Splitwise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Splitwise

Evenly split the expenses of a trip amongst friends

Prerequisites

Idea Intellij

Steps to run project

  • git clone git@gitlab.com:nimish-assignments/Splitwise.git
  • Import project into Intellij
  • Open SplitwiseDriver file
  • Edit the members and expenses of members in main method as follows:
"A,B,C,D"
{"A 300 Snacks", "C 100 Tickets", "D 200 Taxi"}
  • Run the file
  • The output will be printed on console

Rules followed

  • Formatted code. (2 space tabs recommended. Otherwise consistency most important overall)
  • Code should be working, ie one should be able to execute it and get desired output for at least all mentioned samples cases.
  • You should have unit test which make it clear the code is working when all unit tests pass.
  • Code should be submitted with appropriate instructions on how to execute(and dependencies) if any required.
  • Code should be submitted before the allotted time. Commits before this time will be considered. Thus a Git repo is mandatory with multiple commits indicating incremental effort.
  • Guard Clause. No else keyword.
  • There should be no return true, return false if the expression can be returned directly.
  • All classes should have a good "Understands" message
  • No comments or empty lines in the code base.
  • Follow java naming conventions for variables, methods, classes and packages.
  • Good commit messages and concise commits. Each commit has changes and tests for those changes.
  • No magic numbers and strings floating around.
  • Having a ReadMe for your code with whatever you deem helps the evaluator.
  • Methods should not be longer than 6 lines of code.
  • Class should not have more than 6 methods.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages