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

  Design a java program that simulates a slot machine

Instead of displaying images, the program will randomly select a word from the following list: Cherries, Oranges, Plums, Bars, and Bells. The program will select and display a word from this list three times.

  Create a console-based application named multiplication

Create a console-based application named Multiplication whose main() method asks the user to input and then calls a method named MultiplicationTable(), which displays the results of multiplying the integers by each of the number 2 through 10

  Elements of a column of a two-dimensional array

When processing all the elements of a column of a two-dimensional array, what possible runtime error do we have do worry about that the number of column elements may not be constant across all rows.

  Calculates the total annual compensation of a salesperson

Write a Java application using an Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson

  Write a test application name employeetest

Create two Employee objects and display each objects yearly salary. Then give each employee a 10% raise and display each employee's yearly salary again.

  Write java program to store values retrieved from user-array

Write a Java program named Arrays6_2GF.java Use an array to store values retrieved from user input. The number of integers to be entered (the length of the array )should also be retrieved through user input.

  Ood methodology

Your local police department wants to design new software to keep track of people, property, and criminal activity. List at least three classes you think should be in the design. For each class, identify some data members and methods.

  Java statement to initialize a variable square

Write a Java statement to initialize a variable square with a rectangle object whose top left corner is (10, 20) and whose sides all have length 40. Then write a statement that replaces square with a rectangle of the same size and top left corner ..

  Code that sorts the household sizes in ascending order

The program should allow the user to enter each household size and determine the mean and median household size in Marengo. Need to write the code that sorts the household sizes in ascending order using a bubble sort.

  Describe how an eavesdropped can gain access

Describe how an eavesdropped can gain access to the remote server with a relatively modest number of guesses ( Hint:  The eavesdropped starts guessing after the original user has typed all but one character of the password.

  Develop class which implements interface

Let the ADT called SquareMatrix. (The matrix can be represented by 2-D array of ints w/ n rows and n columns.) Write specification for ADT as Java interface. Develop the class which implements interface.

  Calculator for elementary school children

Write a program that is designed as a calculator for elementary school children. It will calculate addition, subtraction, multiplication, and division.

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