Code Monkey home page Code Monkey logo

javabootcampmodule11's Introduction

JavaBootcampModule11

Summative Project 2: Movie Budget Manager

Basic budget manager for a movie production unit. Created objects and methods to represent the actors and crew members, as well as the movie itself.

Classes are as follows:

Person (Abstract)

Includes a name, how much they are paid, and how much they have earned. Also includes an abstract method called getPaid() to pay an object of class Person or any of its sub-classes.

Actor

Extends from Person and includes their role. Overrides getPaid() to pay an Actor based on a fixed amount.

Crew

Extends from Person and includes their department. Overrides getPaid() to pay a Crew member based on a fixed amount.

Director

Extends from Crew. Overrides getPaid() to pay a Director a 10% royalty based on movie profits.

PA

Extends from Crew. Overrides getPaid() to pay a PA an hourly salary.

Movie

Contains a movie's Genre, Director, a list of Actors, a list of Crew, the overall budget, money spent, money earned, and the profit. Contains a method to calculate profit. Contains a Payday method that pays all actors and crew on the movie and adds the total to money spent.

App

Instantiates all objects created. Demonstrates the Payday method in Movie by printing how much the PA earned, money spent out of the total budget, profits, and how much the director made in royalties. Contains a helper method to format dollar amounts by adding commas between groups of three numbers to make it more readable. Movie I chose is Jurassic World: Fallen Kingdom. I never actually saw the movie, so don't ask me why I chose it.

javabootcampmodule11's People

Contributors

avi-sionary avatar

Watchers

 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.