Skip to content

A tiny library that serves as an estimate calculator for a packaging company. Part of a code screen application.

Notifications You must be signed in to change notification settings

clairellesage/nulogy-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About me

Hi, I'm Claire. I'm a recent graduate from Lighthouse Labs full time web development bootcamp. My background is in Linguistics -- specifically phonetics and phonology (speech sounds). I'm kind of nerdy about vowels.

I'm relatively new to code -- but 8 weeks of 12 hours days seem to have brought me up to speed with basic Javascript and Ruby. I consider myself full stack but I'm looking forward to learning as much as possible to find what I love and do best.

I just wanted to say that I'm super excited about an opportunity to intern with empowered women who openly care as much as about their professional development as their personal development.

Thank you for considering my application.

Runtime Versions

node v6.3.1

npm v4.4.1

How to install

$npm install

How to run the tests

$npm test

Pricing problem

NuPack is responsible for taking existing products and repackaging them for sale at electronic stores like Best Buy. Companies will phone up NuPack, explain the process and NuPack needs to quickly give them an estimate of how much it will cost. Different markups to the job:

  • Without exception, there is a flat markup on all jobs of 5%
  • For each person that needs to work on the job, there is a markup of 1.2%

Markups are also added depending on the types of materials involved:

  • If pharmaceuticals are involved, there is an immediate 7.5% markup
  • For food, there is a 13% markup
  • Electronics require a 2% markup
  • Everything else, there is no markup

Another system calculates the base price depending on how many products need to be repackaged. As such, the markup calculator should accept the initial base price along with the different categories of markups and calculate a final cost for a project.

The flat markup is calculated first and then all other markups are calculated on top of the base price plus flat markup.

Example 1:

Input:  $1,299.99, 3 people, food
Output: $1,591.58

Example 2:

Input:  $5,432.00, 1 person, drugs
Output: $6,199.81

Example 3:

Input:  $12,456.95, 4 people, books
Output: $13,707.63

About

A tiny library that serves as an estimate calculator for a packaging company. Part of a code screen application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published