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
identify the possible classes and methods in the classes which can be used in a sales tracking system for a fast food restaurants

Calculate the kilometer within an hour? class Car { String licensePlate = ""; // e.g. "New York 543 A23" double speed = 0.0; // in kilometers per hour doubl

Write program to Passing Arguments to Methods ? It's generally considered bad form to access fields directly. Instead it is considered outstanding object oriented practice to

Please check out the given instruction that I received to do the assessment. I can provide you that link to go on and submit the answers. To assess your coding skills, we would

write a program to find the area under the curvey y=f(x) between x=a and x=b.integrate y=f(x) between the limits of a and b. the area under a curve between two points can be found

I can''t figure out how to do this question: "Given two linear equations: ax + by + c = 0 and dx + ey + f = 0" solve for x and y. A, b, c, d, e, and f being inputted from the user.

Q. Write the method to define the packages in java programme. Explain. Ans. Package: When we work on a project we have to break our programme in several classes. To organize

Describe the relational operators in java? Java has six relational operators which compare two numbers and return a boolean value. The relational operators are , > , , >=

there is a pebble merchant. he sells the pebbles,that are used for shining the floor.his main duty is to take the length of the room side but he sometines mistakes doing that and m

Write a programme to create a webpage that prints the name of the STUDENT database in Wide Latin font and set the subtitle with description of the STUDENT to the screen. Set the pa