Giter VIP home page Giter VIP logo

-jr_exercise_2021's Introduction

jr_exercise_2021

Simple programming exercise for junior developer candidates

Tech Stack:

  • .net

How to run this application

  • Navigate the root folder/ jr_exercise_2021
  • Open the CouncilWise Exercise.sln through the Visual Studio
  • Click Run button on the Menu bar

Requirements:

  • Given a list of receipt items where TaxAmount is not populated, calculate the correct tax for each receipt item. If IncludesGST is true, the unit price contains tax already. (In this case you will need to divide by 11 to get the tax amount).

    • If includesGST is false, the unit price does not contain tax and you will need to calculate it (multiply by 0.1 for tax amount).
  • Return a populated Receipt object which contains the receipt items including tax amounts with the correct totals.

    • Note that all totals shown on the receipt should be tax inclusive, including the receipt item totals.
  • For bonus points, if the receipt item name is a palindrome, the receipt item unit price should be changed to free.

    • A palindrome is a string which reads the same way forwards and backwards
  • You may modify the Receipt ReceiptItem and Helper classes any way you like as well as add new classes, but you must call the ProcessReceiptItems() method and the Receipt.ToString() method in your test case and no other methods.

  • Add additional test cases to cover any edge cases you can think of

    Expected Output:

    Print a receipt to the console with the following format:

Receipt:
   Items:
      <Name>
      <Quantity>		<UnitPrice>		<Total inc. Tax>
      <Name>			
      <Quantity>		<UnitPrice>		<Total inc. Tax>
      ... for all receipt items
   Total:   <Total inc. Tax>
   GST:     <TaxTotal>

-jr_exercise_2021's People

Contributors

councilwisenick avatar limingw4159 avatar

Watchers

 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.