Giter Club home page Giter Club logo

boating-school's Introduction

Bikini Bottom's Boating School App

Special thanks to Melaine MacDonald for an amazing project

Welcome to Boating School! This project is meant to help out Bikini Bottom citizens take their boating test to get a license! There are three models, Student, Instructor, and BoatingTest.

Domain Modeling

  • An Instructor has many BoatingTests
  • A Student has many BoatingTests
  • A BoatingTest belongs to a Student and an Instructor

As a kind reminder, try drawing out the relationship before attempting to write code. This will help you think about which models should own what data and which models should ask for information from other models.

Student class

A Student should initialize with a first_name and last_name

  • Student.all
    • Returns all of the student instances
  • Student.full_names
    • Returns an array of all students' full names
  • Student#add_boating_test(instructor, test_name, test_status)
    • Should initialize a new BoatingTest with a Student object, a boating test name (String), a boating test status (String), and an Instructor object
  • Student.find_student(full_name)
    • Takes in a full name as a string and returns back that Student object

BoatingTest class

A BoatingTest should initialize with a Student object, a boating test name (String), a boating test status (String), and an Instructor object

  • BoatingTest.all
    • Returns an array of all boating test instances

Instructor class

An Instructor should initialize with a name as a string.

  • Instructor.all
    • Returns an array of all instructor instances
  • Instructor#fail_student(student_name, test_name)
    • Changes a test's status to being failed
  • Instructor#pass_student(student_name, test_name)
    • Changes a test's status to being passed
  • Instructor#boating_tests
    • Shows all boating tests that this instructor is conducting

boating-school's People

Contributors

maxcell avatar

Watchers

 avatar  avatar  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.