Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92020775

Have any Question?


Related Questions in Computer Engineering

Question create an android app to show others a collection

Question: Create an Android app to show others a collection of five to eight items that you intend to sell through your app. Choose any items you desire. Include the following features and functions in your app: • An ope ...

Given an undirected graph with both positive and negative

Given an undirected graph with both positive and negative edge weights, design an algorithm to find a maximum spanning forest with the largest total edge weights.

Question you are to write a report on the malware assigned

Question: You are to write a report on the malware assigned to you in the "Week 6 Malware assignment by individual student" document. Your report, written in Microsoft Word with 12 point type and 1 in margins, must have ...

It is required to design an iterative combinational circuit

It is required to design an iterative combinational circuit that computes the equation Z=2*X-Y, where X and Y are n-bit unsigned numbers. (i) Determine the number of inputs and outputs needed for your 1-bit cell. (ii) De ...

Aaninformationretrievalsystemhasacertainpairofaverageprecisi

(a) An information retrieval system has a certain pair of average precision and recall values when the system returns 10 documents in response queries. Would the precision and recall rate remain unchanged if the system w ...

How to design a java program that reads a sentence say s

How to design a Java program that reads a sentence, say s, consisting of lower-case words with .nextLine() method, identifies the words using .indexOf() and .substring() methods and saves them in String variables. Then t ...

Understanding the digital revolution assignment - parchment

Understanding the Digital Revolution Assignment - Parchment Purgatory Overview - For this assignment, you will use skills acquired through practical laboratory exercises to automate a business process, and to visualize t ...

How can word processing software give a person the ability

How can Word Processing software give a person the ability to better position themself or a business, in today's society? Why?

Question lessons learned from the mirai botnet attack of

Question: Lessons learned from the Mirai Botnet attack of 2016 • Research the history of the attack and those responsible. • What did this exploit? • Why was it so much more effective than previous BotNet designs? • What ...

Sales bar chartwrite a program that asks the user to enter

Sales Bar Chart Write a program that asks the user to enter today's sales for 5 stores. The program should then display a bar graph comparing each store's sales. Create each bar in the bar graph by displaying a row of as ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As