- Home >
- Programming >
- Code Using MVC Compound Pattern

Studypool values your privacy. Only questions posted as Public are visible on our website.
Code Using MVC Compound Pattern

Anonymous
label
Computer Science
timer
Asked: Nov 11th, 2016
Question description
Please see attachment for clear instructions.
(MVC)
The objective of this project is to develop a movie rental management system using the MVC
compound pattern. The project can be implemented in either Java, or C++ or C#. The system is
made of the following entities:
1. Clients: They rent movies in the system. Clients are stored in a file called clients.txt.
2. Movies: These are the objects to be rented. Movies are stored in a file called movies.txt.
3. Rental_Info: These are the information about who rented which movie, the date of
rental, and date of return. Rental_Info are stored in a file called rental_info.txt.
File Structure
clients.txt
client_id; name; deleted
if deleted=0 then client is active in the system, if deleted=1 then the client is logically deleted.
Example:
3; Thomas Jefferson; 0
movies.txt
movie_id; movie_title; rented
if rented=0 then is not rented currently, if rented=1 is rented.
Example:
1; Altitude; 0
2; Alien vs Ninja; 0
rental_info.txt
rental_id; client_id; movie_id; date_out; date_in
date_out and date_in should be stored in format mm/dd/yyyy
if the movie has not been returned, then date_in is empty.
A record should be placed in this file every time a movie is rented, and a record is updated
every time a movie is returned.
Example:
1; 3; 1; 4/18/2016;
2; 3; 2; 4/18/2015; 4/19/2015
In the first case shown above, the client called Thomas Jefferson rented the movie Altitude on
4/18/2016
In the second case shown above, the client called Thomas Jefferson rented the movie Alien Vs.
Ninja on 4/18/2015 and returned it on 4/19/2015
Requirements
The system should be able to handle the following transactions:
For Clients:
1. Create a client.
2. Delete a client. A client does not get physically deleted from the system. A flag in the
record in file just states if the client is “logically” deleted.
3. Search a client by last name, first name and show its information
4. Show all clients
For Movies
1.
2.
3.
4.
5.
6.
Create a movie.
Rent a movie.
Return a movie.
Show all movies, showing current rented movies first.
Show current rented movies.
Show who has historically rented a particular movie, sorting in descending order by date
of rental.
Restrictions
1. The interface for the system can be graphically or text-based, however your design
must follow the dynamics of the Model Viewer Controller design.
2. Every time the app starts, it should allow the system to find/choose the location of the
files.
3. A client can rent at most 3 movies at a time. If a client tries to rent a 4 th movie, the
system must tell the user that the client is unable to rent the movie.
4. The current rental business only keeps one copy of a movie. If the user tries to rent a
movie that is currently rented, the system must tell that the movie is not available.
What to submit?
1. If you use Java, submit your NetBeans project in a ZIP file. This project should be
developed using Java SE only (not intended to be a web-based project).
2. A PDF document with the information about your classes as well as the class diagram
describing your components of the system. Your written document must explicitly
describe which components are the Model, which are the Controller(s), and which are
the Viewers.
3. If you used any other patterns, please write down in the PDF document where you used
them.
Tutor Answer
Nov 11th, 2016

Similar Questions
Multi-vendor cart but unlike eBay
Hello,I want a multi-vendor shopping cart…somewhat similar to eBay where other people can sell their merchandises. Idea ...
Give suggestion to improve this website From Computer-Science: Software-Engineering
I am looking for suggestions to improve following website.
http://www.basicastro.com
Please give as detail descripti...
what plants exhale at night
what plants exhale at night...
Conduct a Search
Review: Full, Anonymous: No
Conduct a search on a product of your choice using the Library's
Consumer
Reports database...
Operating System Concepts Multi Choice
Help with Multi choice assignment coming up --> Operating System Concepts. Must be available 5pm EST New York Time Wednesd...
Field Analysis Paper - 3-6 pages
Assignment 1 Outcomes addressed in this Assignment: Unit Outcomes:• Discuss Information Technology trends and practi...
Convert little-endian to big-endian and 32-bit to 64-bit
I have this question as homework and I can't seem to figure it out. Hope someone can help me out.
The next 20 bytes repres...
Paper
*** This Paper is on CLOUD COMPUTING ***1. Submit a paper based on current trend in the computer industry. Paper organizat...
computer science
hi!...
Hot Questions
The table lists the average annual cost of tuition and fees, algebra homework help
The table lists the average annual cost of tuition and fees
at private 4-year colleges for sel...
MLA Works Cited - Quiz 10 question
Question 1 (1 point) The student is quoting from "Surveillance: Taking It Downtown" by Br...
questions end of term British and world literature
1. In his stories, Arthur Conan Doyle portrays Sherlock Holmes as __________.(Points : 5) an intelligent a...
Identifying an Acceptable Paraphrase (MLA Style) - Quiz 10 question
Question 1 (1 point) [Ed: error here relates to close wording]The
original vision of charter schools in 1988, when ...
HMGT 300 Week 6 Quiz
Question
1 (4 points)
According to the National Institute
for Health Care Management: Understanding U.S...
Appropriate Quotation (MLA Style) - Quiz 10 quetion
Question 1 (1 point) [Original:]
Most editors test their covers in focus groups in an endless search for
the magi...
Payroll project.
I need help with this payroll project from Chapter 7. This is the book: Payroll Accounting, by Beig, Toland, edition 2017....
Need help with some Discussions about cultural issues that may impact on you as an ICT professional
Question 1Describe and discuss what cultural issues may impact on you as an ICT professional if your organisation mer...
Childhood Anxiety/ Ashford Univ EDU644
Hourigan, Settipani, Southam-Gerow, & Kendall (2012) explain, “Childhood anxiety disorders are among the most common...
Related Tags
Study Guides
Homo Deus
by Yuval Noah Harari
Of Mice and Men
by John Steinbeck
Gone with the Wind
by Margaret Mitchell
The Woman in the Window
by A. J. Finn
Fear - Trump in the White House
by Bob Woodward
The Lord of the Flies
by William Golding
Persuasion
by Jane Austen
The Communist Manifesto
by Karl Marx
I Cant Make This Up - Life Lessons
by Kevin Hart