Git Product home page Git Product logo

parcels's Introduction

Parcels

Project in Ruby

By Kelsey Langlois and Megan Olson

Description

A Ruby web app that calculates the cost of shipping parcels.

Setup/Installation Requirements

  • Clone this repository
  • Run bundle install in the project root.
  • Run ruby app.rb
  • Open localhost:4567 in your web browser

Specifications

  • Program determines volume of a parcel based on its dimensions.
    • Example Input: 3, 3, 3
    • Example Output: 27
  • Program determines cost to ship of a parcel based on the following:
    • Program returns a base cost of 2 dollars.
      • Example Input: Weight: 0, Volume: 1, Shipping: "Standard"
      • Example Output: 2
    • Program adds 1 dollar for each pound the parcel weighs.
      • Example Input: Weight: 3, Volume: 1, Shipping: "Standard"
      • Example Output: 5
    • Program adds 1 dollar for each cubic foot of volume greater than 1 cubic foot
      • Example Input: Weight: 0, Volume: 3, Shipping: "Standard"
      • Example Output: 4
    • Program adds 10 dollars for 2-day shipping.
      • Example Input: Weight: 0, Volume: 1, Shipping: "2-Day"
      • Example Output: 12
    • Program adds 20 dollars for next-day shipping.
      • Example Input: Weight: 0, Volume: 1, Shipping: "Next-Day"
      • Example Output: 22
    • Program adds $.50 for each square foot of surface area if user requests gift-wrapping services.
    • Example Input: Weight: 2, Surface-area: 6, Volume: 2, Shipping: "Standard", Gift-wrapping: true
    • Example Output: 6

Support and contact details

Please contact [email protected] with questions, comments, or issues.

Technologies Used

  • Ruby
  • Sinatra

License

Copyright (c) 2017 Kelsey Langlois and Megan Olson

This software is licensed under the MIT license.

parcels's People

Contributors

langlk avatar

Watchers

James Cloos 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.