Program can be used with a video rental business

Assignment Help Computer Engineering
Reference no: EM1329986

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: EM1329986

Questions Cloud

Balancing the societys rights : Would you please concisely discuss what ideas from the Declaration of Independence you see as the most meaningful basis of our law today.
Determining annuity evaluation : You will live at least 35 more years. Ignoring taxes, should you purchase the annuity? Base your response entirely on financial grounds.
Product development : Describe a plan that states specifically what needs to be done and when each item will get done. This plan should include any "product development" efforts that still need to occur and should include your schedule for the creation of your promotional..
Explain important information about asp : Explain Important information about ASP and prepare a document outlining how ASP can be used to put in an online shopping section with shopping cart
Program can be used with a video rental business : Extend above with a Rental class. This class must 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.
Elucidate which project should be accepted : Elucidate which project should be accepted if the required rate of return for the projects
Estimating present balance : How much must there be in the account today in order for account to minimize to a balance of zero after the last withdrawal.
Freedom of speech : All speech receives the same degree of Constitutional protection.Some speech is not protected.
Explain the kantian arguments : Explain the Kantian arguments Denis Arnold and Norman Bowie use in "Sweatshops and Respect for Persons" to support the claim that MNEs have duties to ensure that their off-shore contract factories meet minimum safety standards and provide a living wa..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Formal mission statement about soft-wear, limited

Explain how do the information systems help the people working individually and in groups make the decisions more efficiently? Write down a formal mission statement about the Soft-Wear, Limited (SWL).

  Define the divide-and-average algorithm

The divide-and-average algorithm for approximating the square root of any positive number a is as follows: Take any initial approximation x that is positive, and then find out a new approximation by calculating the average of x and a/x, that is, (..

  Write down the definitions for a double-stack structure

Write down the definitions for  a double-stack structure

  Constructing threat model to explain risk

Construct a simple threat model which explains the risk this represents: attacker(s), vulnerability, attack vector, assets, and likelihood of the occurrence, likely impact, and plausible mitigations.

  Purpose of testing

Describe the purpose of testing. Discuss how tests are carried out at different levels within the system.

  The hard drive will the original query take

suppose (somewhat artificially) that RAM can hold 200 rows and devotes half of that to reading one table and half to reading the other table and has "other places" to store the subquery/query results.

  Write down the data in a text file

Write down the data in a text file. Ask users to put in their annual income for 3 years.

  What is the sql

Recently AMI has been experiencing significant downtime because of  a failing software application written for AMI when the company started. This Access database application is responsible for a main manufacturing process.

  When the user presses the start button

When the user presses the start button, a menu display of potential destinations is activated along with a message to user to choose a destination.

  What required to happen in order for the database

If the computers of organization are to old, the database management system might not be installed in the organization and will not run properly or sometimes not at all. This information is good to remember as planning a particular database implem..

  Illustrate a 4-d hypercube network

Illustrate a 4-D hypercube network

  Make instances of each class

plan a Java class named Person with fields for holding a person's name, address and telephone number.

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