Skip to content

Homework assignment for full stack engineering candidates.

Notifications You must be signed in to change notification settings

krittinuns-wsm/full_stack_homework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Full Stack Homework Assignment

Build a change calculator that when given an argument of dollars and cents, output the smallest quantity of bills and coins equal to the amount.

For the candidates leaning towards the back end, you can build it in Ruby. For those leaning more towards the front end, you can build it in JavaScript.

Homework

In the USA, we have the following types of currency…

  • $100 dollar bill
  • $50 dollar bill
  • $20 dollar bill
  • $10 dollar bill
  • $5 dollar bill
  • $1 dollar bill
  • $.25 cents (quarter)
  • $.10 cents (dime)
  • $.05 cents (nickel)
  • $.01 cents (penny)

Example output

If 1.00 was passed as an argument, the output would be “Your change is 1 dollar bill". The dollar being the largest type of currency available to make up 100 cents, which is also the smallest quantity of dollars and coins.

If .99 was passed as an argument, the output would be “Your change is 3 quarters, 2 dimes, and 4 pennies”

if 124.67 was passed as an argument, the output would be “Your change is 1 100 dollar bill, 1 20 dollar bill, 4 1 dollar bills, 2 quarters, 1 dime, 1 nickel, and 2 pennies.

What you're building

  • A method for calculating change
  • Unit tests for your code

What we're looking for

  • Clean and readable code
  • Knowledge of OO principles
  • Problem solving skills
  • Ability to think outside the box

About

Homework assignment for full stack engineering candidates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published