Giter VIP home page Giter VIP logo

5.5.5-activity-array-automotive's Introduction

Activity Automative

  • In this lesson students work on creating a vehicle and factory class
  • the learning objective is applying the concepts of classes to solve a real-world problem of modeling a vehicle manufacturing factory

Instructions

  • create a Vehicle class in the vehicle.js file that adheres to the provided class diagram
  • a vehicle should by default have an undefined paint, since all metal starts unpainted
  • when the .paint("blue") method is called on a vehicle it should paint it blue
  • when the .drive() method is called on a vehicle new Vehicle("Ford", "F-150", 2015, 19000, "1234") it should print out this 2015 Ford F-150 drives
  • create a Factory class in the factory.js file that adheres to the provided class diagram
  • when the .createVehicle(vehicle) is called with a valid vehicle it creates a vehicle in the factory
  • when the .listVehicles() is called it returns all vehicles in factory
  • when .paintVehicle(vin, paintColor) it paints the matching vehicle the specified color

Acceptance criteria

  • The vehicle class passes all tests
  • The vehicle class definition matches the class diagram
  • The factory class passes all tests
  • The factory class definition matches the class diagram

5.5.5-activity-array-automotive's People

Contributors

brandiw avatar crsawyer314 avatar hinchley2018 avatar jfdhackerusa avatar jlboba avatar nickubed avatar

Stargazers

 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.