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

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

  Working with numeric variables

Create a Java program for the following application. (it is in the second chapter of my Intro to "Java Programming" book (Murach 4th Edition)It involves1. working with numeric variables2.using the System.out object to print output to console

  Explain we have to make a project in java

We have to make a project in java . This is a small deskstop application no specifications given so far . The CD store has CD games and music we can rent a cd or we can buy . This is all we need to develop.

  Write a program that reads in a text file and then computes

Write a program that reads in a text file and then computes and prints a table of letter frequencies. For example, if the file is the text of "A Tale of Two Cities", found in the file at data/tales.txt , the program will print

  Write the definitions of the methods to implement operations

Calculate and return the day by adding certain days to the current day. For example, if the current day is Monday and we add four days, the day to be returned is Friday. Similarly, if today is Tuesday and we add 13 days, the day to be returned i..

  Write an application that takes in an array of 30 grades

Write an application that takes in an Array of 30 Grades (integer) and returns the maximum grade, minimum grade, average of all grades, and prints a Bar Chart to show the grade distribution.

  Write a program to track hourly employee arrival departure

THE JAVA SOURCE CODEWILL AWARD AN ADDITIONAL 1,500 POINTS TO PERSON WITH THE BEST ANSWER (you will be directed to another one of my previous, unanswered questions.)A company hires you to write a program to track hourly employee arrival and departure ..

  Create a class named blooddata that includes fields

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor (the factors are + and -). Create a default constructor that sets the fields to "O" and "+", and an overloaded c..

  Implement elliptic curve encryption - decryption in java

Implement Elliptic Curve encryption - decryption in java. Specifically, your program will read parameters, plaintext and ciphertextfrom a file

  Instantiate two savingsaccount objects

saver1 and saver2, with balances of $2000.00 and $3000.00, respectively (was trying to figure out the formula, what I have written so far is as follows, and I am trying to see if I missed something

  The performance of a wimax network appears to be lower

the performance of a wimax network appears to be lower expected and you suspect interference to be the cause. write a 2

  Create a new project in ide named exceptionhandler

Write code to accept numbers as described above from the user. Your code should ensure that only numbers are accepted.

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