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

Javascript work, It could be something simple for a good js coder. But ther...

It could be something simple for a good js coder. But there may be a custom design and I can give more feedback for the person who is interested in working with me. Check Invisi

What is methods in java explain with an example, What is Methods in java ex...

What is Methods in java explain with an example? Data types aren't much use unless you can do things along with them. For this reasons classes have techniques. Fields say what

SWING, Application using Swing API

Application using Swing API

Explain why java does not support multiple inheritance, Question: (a) ...

Question: (a) Differentiate between the following terms using suitable examples of your own:- (i) inheritance v/s composition (ii) subclass v/s superclass (iii) softwa

List down the names of two array techniques available java, List down the n...

List down the names of two array techniques available in JavaScript. The two techniques thata rae available in java script is: 1. sort( ) [sorts elements within alphabetical

Explain multi dimentional arrays in java, Explain multi dimentional arrays ...

Explain multi dimentional arrays in java? So far all these arrays have been one-dimensional. That is, a single number could locate any value in the array. Therefore sometimes d

We want an e commerce site, We want an E Commerce site Project Descripti...

We want an E Commerce site Project Description: We want an E Commerce site like fifacointrader.. You must have experience with that kind of work We will award the proje

Data structures programming, Colossus has just purchased a computer for it...

Colossus has just purchased a computer for its new automated reservation system. You have been asked to program the new system.  You are to write a program to assign seats on ea

Java pass arguments by value or reference, Does Java pass arguments by valu...

Does Java pass arguments by value or reference? Ans) Pass by value. 1. When passing primitives, it going a copy of the variable to the method. Any change made in the method d

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