Define private instance variables to store basic details

Assignment Help Computer Engineering
Reference no: EM131266022

Programming Assignment -

Background information

For this assignment you need to write a console application in the Java programming language which implements a simulation for a movie borrowing and return system for the video store MovieMaster. The staff at MovieMaster will need to be able to maintain the details for  rental movies  that are available to hire by registered MovieMaster customers.

Rental movies may be available in bluray  and/or DVD  format and are also tagged as being either new release movies (which can only be borrowed for up to 2 days before needing to be returned) or weekly movies (which can be borrowed for up to 7 days before needing to be returned).

Bluray movies cost $5.00 to hire and DVD's cost $3.00 to hire.  If a rental movie in either format is returned late then a late fee of 50% of the hire fee for the relevant movie type is charged for each day that has passed after the initial loan period for the movie in question.

MovieMaster staff will need to be able to perform the following tasks:

  • Displaying a summary of the details for rental movies that are currently available for hire.
  • Displaying all movies within a specified genre to allow MovieMaster staff to make recommendations to customers based on the type of rental movies they are interested in.
  • Record details for movies that have been borrowed by MovieMaster customers.
  • Record details for movies that have been returned by MovieMaster customers.
  • Displaying full details for all rental movies that are currently available for hire.

You will be addressing these requirements by implementing a RentalMovie class to encapsulate the details and functionality for a single RentalMovie that has been made with MovieMaster, as well as implementing a console application which creates a set of RentalMovie objects and simulates the functionality of the service recording and management system as described above.

Assignment Overview

In this assignment you will be developing a simple service recording and management system for MovieMaster, which is a mechanical servicing business which offers rental movies for hire.

The first stage in this task will be to develop a simple RentalMovie class which encapsulates the details for a single RentalMovie that is available for hire from the MovieMaster store.  

The design and required functionality for this RentalMovie class will be described in stage 1 of this specification. 

In the second stage for this task you will be required to demonstrate your understanding of core object-oriented programming concepts by showing how the RentalMovie class can be instantiated to create many RentalMovie objects and how the details contained within  these RentalMovie objects can be viewed, queried and updated.

Stage 1 - Implementing the RentalMovie class 

You are required to implement a class named RentalMovie to model the details of rental movie that is available for hire from the MovieMaster store.  

a) Define private instance variables to store basic RentalMovie details:

Also define the private boolean instance variables:

b) Provide a pre-defined constructor for the class.

c) Implement a method public double returnMovie(int daysBorrowed)

d) Implement a method public void displayMovieDetails()

Stage 2 - Using the RentalMovie class 

a) Declare and instantiate array of RentalMovie  references named movies  that can hold up to six  (6) RentalMovie objects.  

b) Create 6  RentalMovie  objects with the details shown below  -  passing the values specified to the constructor for each object in an appropriate manner - and store each object in the next vacant position in the movies array described above. 

c) Display customised (selective) data (movie ID and movie title / genre) for each of the RentalMovies stored in the movies array, as shown below in the sample screenshot:

d) Allow the user to specify a particular genre that they wish to list rental movies for and then execute a search and  display the movie ID,  title  and media type  for all RentalMovies  that belong to that particular genre.

e) Implement a menu-driven Movie Borrowing / Returning feature, which allows the user to record details for movies that have been borrowed and returned, as well as displaying details for all movies currently in the system.

Attachment:- Assignment.rar

Reference no: EM131266022

Questions Cloud

Jaeho and lawrence scores on the exam : Does Jaeho have a dominant strategy with regard to concealing or revealing his answers? Explain your answer. Does Lawrence have a dominant strategy with regard to concealing or revealing his answers? Explain your answer. What do you predict will be J..
Display program description to user before asking for input : Display a program description to the user before asking for any input. Defines a constant for PI, using fixed notation, carried out to 5 decimal places (value for Pi was given in program 1).
Should jane claim that she is hispanic american : Does the information you collected during this activity improve your evaluation of the company? - Should Jane claim that she is Hispanic American? Explain your response.
Tax incidence split between workers and firms : Suppose that after the tax is imposed, the wage rate rises to $12.00 an hour and that only 8,000 workers are employed. How is the tax incidence split between workers and firms?
Define private instance variables to store basic details : CPT121 / COSC2135 Programming Assignment. Define private instance variables to store basic RentalMovie details: Also define the private boolean instance variables: Provide a pre-defined constructor for the class
Where is an autotransformer employed in a power system : In a transmission system the star side of a star/delta transformer is HV side, while in a distribution system the star side is the LV side. Explain.
Why are transformers placed in oil-filled tanks : Why is an OC test generally performed at rated voltage on LV side of a transformer?
Calculate the reactance in ohm referred to hv/lv sides : Calculate the pf of load (rated) at which voltage regulation would be maximum. If this load is fed at rated voltage on LV side, what should be the HV side line voltage?
Differentiate between core and shell-type transformers : Explain the operation and application of the impedance transforming property of an ideal transformer.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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