Create a class named movie that can be used with a video

Assignment Help JAVA Programming
Reference no: EM13940812

Create a class named Movie that can be used with a video rental business. The Movie class should track the Motion Picture Association of America (MPAA) rating (e.g.,Rated G, PG-13, R), ID Number, and movie title with appropriate accessor and mutator methods. Also create an equals() method that overrides Object's equals method, where two movies are equal if their ID number is identical. Next, create three additional classes named Action, Comedy, and Drama that are derived from class Movie. Finally, create an overridden method named calcLateFees that takes as input the number of days a movie is late and returns the late fee for that movie. The default late fee is $2/day. Action movies have a late fee of $3/day, comedies $2.50/day, and dramas $2/day. Test above classes using a main method.

Extend above with a Rental class. This class should store a Movie that is rented, an integer representing the ID of the customer who rented the movie, and an integer indicating how many days late the movie is. Add a method that calculates the late fee for the rental. In the main method create an array of type Rental, filled with sample data of all types of movies. Then, create a method named lateFeesOwed that iterates through the array and returns the total amount of late fees that are outstanding.

Reference no: EM13940812

Questions Cloud

Small motor vehicle repair garage : Rory, Marsha & Chris have a small Motor Vehicle Repair Garage. They have been in business together for the last 6 years. They would like to expand their business as trade has been growing over the last 3 years. In order to expand they need to take..
Prepare a balance sheet for bear park : Bear Park, a public camping ground near the Lake Mead National Recreation Area, has compiled the following financial information as of December 31, 2014. Prepare a balance sheet for Bear Park as of December 31, 2014
Determine the changes to these dimensions : A rectangular prism has sides of 100, 80 and 50 mm before being subjected to a uniform fluid pressure of 80 MPa on all faces. Determine the changes to these dimensions and the change in volume which occurs.
Is america clear about race, class, and gender expectation : As a country, is America clear about its race, class, and gender expectations? Justify. Also, discuss the current state of minorities in the criminal justice system. Over the last few decades, have conditions improved for minorities? Why or why no..
Create a class named movie that can be used with a video : extend above with a Rental class. This class should store a Movie that is rented, an integer representing the ID of the customer who rented the movie, and an integer indicating how many days late the movie is.
Employee socialization is one method that can increase : Employee socialization is one method that can increase employee retention. Why? Explain how you plan to retain employees in a traditionally high turnover industry (more money is not a plan).
Calculate the volumetric strain : Calculate the strains in these directions, the changes in dimensions, (c) the volumetric strain and (d) the change in volume. Take E = 150 GPa and v = 0.3.
Event management strategic plan : Students are reminded that this report should focus upon the event management strategic plan rather than the stakeholders or event owners' external mission, vision, goal, objectives, values and outcomes.
Background reading in the areas of recruitment : This learning module requires you to do background reading in the areas of recruitment, selection and induction. This reading will provide you with the conceptual foundations needed to do the practical assessment tasks.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Development of a graphical user interface

To understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Write a class called rationalnumber

Write a class called RationalNumber that represents a fraction with an integer numerator and denominator.

  Implement a class person with two fields name and age

Implement a class Person with two fields name and age, and a class Car with three fields

  Write a graphical user interface class

Write a graphical user interface class called SentenceCounterGUI. It should be able to manipulate the sentence of words and have the behaviour label.

  Design and implement a sorting algorithm

Your task is to design and implement a sorting algorithm and running time grows as a linear function of the array

  Prepare an overloaded constructor

Prepare an overloaded constructor that provides values for each field. Also provide get methods for each field. Save the file as Patient.java.

  Use java or c++ to create a program for making the pizza

Make the Pizza example abstract, so that there are three kinds of factories under one AbstractPizzaFactory You can use Java or C++

  Recommend at least five factors which programmers must

propose at least five factors that programmers should consider when choosing between data types such as those used in c

  Write java program to evaluate postfix expressions

Write a java program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes.

  Create a jsp that displays the student name

Create a JSP that displays the student name and the current score, given the EMPLID and class ID. For each class, a text file is used to store the student name, EMPLID, and current score

  Prepare a program that constructs a binary tree and

prepare a program that constructs a binary tree and traverses the tree in pre-order in-order and post-order methods.

  Make a class named main.java

Make a class named Main.java after through the following steps. From step: 10 is related to your Main.java. Copy/paste your Main.java under the word:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd