Implement the main program with user interface, JAVA Programming

Assignment Help:

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.


Related Discussions:- Implement the main program with user interface

Saaa, Write a program to find the area under the curve y = f(x) between x =...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

What is the jsf, JavaServer Faces(JSF) is a framework for building web-base...

JavaServer Faces(JSF) is a framework for building web-based user interface in Java. Unlike Swing, JSF provides widgets like buttons, hyperlinks, checkboxes, etc. in dissimilar ways

Legal responsibility of nurses, As registered nurses, we often wonder "am I...

As registered nurses, we often wonder "am I responsible for the L.P.N's and the C.N.A. assigned on my floor.  Will I be blamed if someone makes an error or if someone gets hurt?  N

What is actionform, An ActionForm is a JavaBean that extends org.apache.str...

An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm.  ActionForm handles the session state for web application and the ActionForm object is automatically p

Why do we call javascript an object-based language, Why do we call JavaScri...

Why do we call JavaScript an Object-based Language? In java language an JavaScript shares several similarities with object-oriented languages, and thus is known as an object-ba

Whatsapp bulk messenger to unlimited numbers, hi,i need whatsapp panel to s...

hi,i need whatsapp panel to send unlimitd message. skype : maya123.com email :

Explain primitive data types in java, Explain primitive data types in java?...

Explain primitive data types in java? Java's primitive data types are extremely similar to those of C. They involve boolean, byte, short, long, int, float, double, and char. Th

Luminous Jewels, Byteland county is very famous for luminous jewels. Lumino...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Why use rmi when we can handle the same benefits from ejb?, EJBs are distri...

EJBs are distributed elements, which need the RMI framework for object distribution. An EJB application server gives more services like object pooling, transaction management, data

Explain the applet in java, Explain The Applet in java? The reason peo...

Explain The Applet in java? The reason people are excited about Java as more than just another OOP language is because it allows them to write interactive applets on the web.

Write Your Message!

Captcha
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