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

  Forming a report which show employee information

Form a report that show the employee information, show on the form you generated in 1) above. The report should display this information for all the users, sorted alphabetically in the ascending order by LastName.

  Back-propagation neural network

Company hires your team in order to develop the back-propagation neural network(s) for predicting next-week trend of five stocks (that is, go up, go down, or remain same).

  Detecting hidden files on suspect drive with forensics tools

What procedures are used by the suspect in order to hide the files on suspect drive, or formatted media and how does computer forensics investigator examine the hidden, password protected or the encrypted files with forensics tools?

  Type of connections in elevator shaft

Describe what type of connections would work within the elevator shaft. If more than one choice is possible, choose the best option and describe the reasons for your choice.

  Indicating the main factors that influenced policy decision

Hardware maintenance is usually provided by a defined service contract negotiated between the organization purchasing the hardware and the vendor selling the hardware.

  The difference between animation and transition effects

When are they appropriate? When is it better not to use them? Can you give me an examples.

  What steps and tools are available for you to protect

What steps and tools are available for you to protect your family (especially your children) from these internet dangers?

  Supply getmethods and setmethods for each variable

offer getmethods and setmethods for each variable. This constructor then sets the class variables miles and gas to the respective input parameters, inputmiles and inputgas.

  What is essential address field width

What is essential address field width

  Creating a new domain tree root checkbox

In case, I select the “Create a new domain tree root checkbox” in place of the “Create a new child domain checkbox”, how would configuration of the forest be different?

  What is mno

What is MNO.

  Dtproperties and sysdiagrams

Exclude the tables “dtproperties” and “sysdiagrams”. List the column CountOfTable, in which the Table is the chosen table name.

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