Implement the main program with user interface, JAVA Programming

You can now implement the main program with its user interface for this assignment in the class MovieBrowse. This will provide a simple, command-line, interactive interface to provide the desired management of the DVD movie details. After loading the movie details from the specified file, your code should loop, prompting for one of the following commands:

l)ist  - display details for the first 20 movies in the list

c)atno  - display details for the movie with the specified catalog number

t)itle  - display details for the movies matching the specified title

y(ear  - display details for the movies matching the specified title

q)uit  - end program
 
You should allow the user to enter one or more letters for each command (eg. "l", "li", "list" should all be accepted as meaning the list command). For more marks, allow these to be in either upper or lower case. For each of the search commands you should prompt for and read just one (only) extra line of information with the necessary search details (for the year search this will be two year values, separated by white space).  

You can choose to either implement all of this code in main (perhaps with some other static helper methods), or by using this class to construct and call a user interface object (as Kathryn did with her DiggDBUserInterface class in assignment 2).

Your code will be run from the command-line with one argument naming the movie data file; looking something like:

java MovieBrowse moremovies.txt

It could then be given a series of commands and search values like:

list
c
1036
year
1964  1966
title
Toy Story
t
Zombie
l
quit
 
If your program does not run correctly when tested, with the input as supplied, you will lose marks.

In your ass3.txt file, you should provide details on your design decisions for this class, specifically which alternative you chose for implementing the user interface code and why; show how you have tested this class, and finally satisfied yourself that the output produced does indeed prove that your code works correctly.

Posted Date: 2/27/2013 7:03:32 AM | Location : United States







Related Discussions:- Implement the main program with user interface, Assignment Help, Ask Question on Implement the main program with user interface, Get Answer, Expert's Help, Implement the main program with user interface Discussions

Write discussion on Implement the main program with user interface
Your posts are moderated
Related Questions
When should a method be static? • Neither reads from nor writes to example fields • Independent of the state of the object • Mathematical methods which accept arguments, appl

Explain the both HashSet and TreeSet? HashSet is an unordered, unsorted Set. It's a Collection set which restrict duplicate elements and also repositioning of elements. I

Describe Polymorphism? Polymorphism can be referred as one name many forms. It's the ability of methods to behave differently, depending upon object who is calling it. Key feat

What does the keyword " synchronize " mean in java. What are the usage and disadvantages of synchronization?

Explain JAR Archives ? HTTP 1.0 uses a separate connection for every request. When you're downloading several small files, the time required to set up and tear down the connec

A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related files and classes and interacts with other components. The

What are adding methods? A subclass isn't restricted to changing the behavior of its superclass. It can also add fully latest techniques and fields that are not shared along wi

Java Remote Method Invocation (RMI): It gives a way for a Java program on one machine to interact with objects residing in different JVMs. The important blocks of the RMI arc

Interface to calculate carbon foot print

can you tell me what the code for a 2d random java array using Recursive Division Maze Generation