subject
Computers and Technology, 12.05.2021 04:30 Jasten

You are tasked by your Project lead to create a console-based Movie Database Management System. This application must be able to handle creating new entries in a proprietary database as well as returning searches for items in the current database. ! Use the filename "db. txt" as your database file to save to and load in upon program start!
You MUST implement the following for full credit:
Start the program by displaying the title of your program (you come up with a name)
Have a primary prompt that allows you to enter commands
(e. g. "Enter command >" )
Interpret primary commands and move to secondary states based on the commands entered. Commands you must support at the primary prompt are:
a.) new entry
b.) search by actor
c.) search by year
d.) search by runtime (in minutes)
e.) search by director
f.) search by title
g.) quit
Your secondary states must do the following:
For "new entry" → Prompts to do the following:
Enter title >
Enter year >
Enter runtime (minutes) >
Enter actor 1 >
Enter actor 2 >
Enter Director >
You must add this entry into the database in one-line (use delimiters between tokens; come up with your own strategy for token order but BE CONSISTENT!)
After entry, return to the main command state...
For "search by actor" → Prompts to:
Enter actor >
Once actor is entered, search database (hopefully already in memory.) Display a list of movie titles that the actor has been in. This must display the titles of movies actor has been in regardless of if actor was actor 1 or actor 2. (If nothing found, display "No titles found for actor" and return to main prompt.)
After entry, return to the main command state...
For "search by year" → Prompt to:
Enter year >
Once year is entered, search database and return list of titles made in that year. (If nothing found, display "No titles found for year" and return to main prompt.)
After entry, return to the main command state...
For "search by runtime" → Prompts to:
Enter runtime (minutes) >
Search like how you did for year. Display list and return to main prompt. If nothing found, display a prompt saying so and return to main prompt.
For "search by director" → Prompts to:
Enter director >
Do the same thing as you did with the actor search. Return list of titles the director has done and return to main prompt. If none found, post message and return to main prompt.
After entry, return to the main command state...
For "search by title" → Prompts to:
Enter title >
If the title is found, return the following about title:
Actors: actor1, actor 2
Director: director name
Year: year made
Runtime: x minutes
if title not found, post message saying so and return to main prompt.
After entry, return to the main command state.
For "quit" → This simply exits the program (close out any open I / O streams prior to exit!)
Other Requirements:
You must make this object-oriented. You need to have a MINIMUM of four (4) different classes interacting with the main method. The minimum classes are:
File I/O class (for saving / loading the database) You can make these two classes; one for read / one for write if you want.
Keyboard input class (handles declaring Scanner object, retrieving text input, closing object)
Class representing a single entry. Use this to easily pass entry information around as a parameter. This class must contain private fields for:
title, actor1, actor2, year, runtime, director
Also, use get methods (public) to retrieve data from fields
Have a class that extends the functionality of the single-entry class and holds the whole current database as a class object. (Hint: You can use an ArrayList behind-the-scenes to do this.)
Create get method that can lookup single entry based on certain criteria (index number, search by criteria, etc.) You can overload your get method if you wish.
You MUST save every entry added to the database to file. This entry must be able to be restored later.
You MUST check that a new entry is valid before adding it to memory (and the database.) To be valid, the entry must have at least a title (minimum length of valid title is three characters.) All other fields can be empty as needed.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:20, shadowgirl1213
Write a select statement that returns product name, customer first name, customer last name, channel description, and amount sold for all the sales. make sure to returns sales even if there is no information on the customer, product, or channe
Answers: 2
image
Computers and Technology, 22.06.2019 10:10, joanasprinkman2262
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
image
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, emojigirl2824
Word vocabulary words: print, proofread, status line, graphics, font effects, left margin, justification, line spacing, copy/paste, data. review words: font point, bold, save, center, error. fill in the correct word for the definition and then transfer the letters to the appropriate spot by number. some numbers will be found multiple times. you will end up with a quotation about…… what else? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 k 16 17 18 19 20 21 22 23 24 25 8 27 28 29 w 31 32 k 34 35 36 w h 39 40 41 42 8 44 45 46 47 48 49 50 51 52 53 54 55 .1. a software function that records keystrokes on a disk or drive so information can be 5 4 52 9 later retrieved. p n 2. to produce a paper copy of information. 10 7 12u n 3. a display that shows the location of the cursor, pages, etc. 45 46 18 27 36 20 42p4. pictures or images, located in clip art or other files. 6 24 44 28 34 49 555. any mis-stroke of a key. 47 41 48 2 10 n6. allows major changes to the font such as shadow, emboss, etc. 21 25 46 35 23 21 29 14 22 17 n7. a feature that centers lines of text horizontally. 49 53 46 9 51 p8. size of the font 31 16 22 b l 9. a feature that prints designated text darker than the rest to add emphasis. 32 3 . p10. to compare copy on a display screen or printout to the original 24 39 25 23 54 9 50 3 and correct errors. j un 11. a feature that allows text to be aligned at the left 11 12 7 21 16 49 40 46 34 2 and right margins. leftn 12. amount of blank space on the left side of the paper. 8 18 41 6 34 linen 13. number of blank lines between lines of text. 17 4 49 13 1914. any information inputted into the computer. 3 4 46 44 p /p15. feature that duplicates text from one location and places it in another.
Answers: 2
You know the right answer?
You are tasked by your Project lead to create a console-based Movie Database Management System. This...

Questions in other subjects:

Konu
Mathematics, 19.11.2020 18:40