Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are to write an application simulating a video store. The store\'s member li

ID: 3688267 • Letter: Y

Question

You are to write an application simulating a video store. The store's member list and inventory are given in txt files in the attached zip file. Also provided are starter and utility classes that you may use freely. The java file VideoStoreStarter contains a menu for the actions a customer may take. Customers must log in before taking any action. They may rent titles, view the store's inventory, view the titles available for rent, return rented titles, etc. When the application exits, the status of each customer's rentals and the available or rented status of each title in the store's inventory should be preserved. When the application is restarted, that state information should be restored. A sample run, from the first execution of the program through exiting and restarting, is also attached. Your program design should demonstrate an understanding of Object Oriented design and programming. You may assume that all user input is valid. Note that some of the files provided were created on a Linux system, which uses a different newline convention than Windows. Looking at these files using notepad will likely be nonproductive. Wordpad displays them ok, and Eclipse works with them.

Data File Format

The format of inventory.txt is

name serialNumber+

where

name is a String suitable for reading with Scanner's next method.

serialNumber+ is 1 or more serialNumbers. Each serial number is unique within the store's inventory.

For example, if a store has three copies of Touch of Evil, the corresponding line in inventory.txt might be

TOUCH_OF_EVIL 1035 1036 1037

where the 1035... are serial numbers for each copy.


The format of customers.txt is

personName streetNumber streetName1 streetName2 city phoneNumber

where

name is a single word," (such as SOPHIE_CHARLOTTE),

street number is an int (such as 20),

streetName1 streetName2 are a two-word street (such as CHARLOTTENBURG PLACE),

city is a single word (such as Berlin) and

phoneNumber is a 10-digit number (such as 9198667000).

So a line for Sophie would be

SOPHIE_CHARLOTTE 20 CHARLOTTENBURG PLACE Berlin 9198667000

Files used in program:

inventory.txt: DANCE_WITH_WOLF 1001 1002
THE_PERFECT_STORM 1003 1004 1005
CHICKEN_RUN 1006
THE_BUGS_LIFE 1007
SNOW_WHITE 1008
TOY_STORY_I 1009 1010 1011
TOY_STORY_II 1012 1013
LOVE_STORY 1014
AIR_FORCE_ONE 1015 1016
AWAY_FROM_AFRICA 1017
FRIDAY_13TH 1018
SILENT_LAMB 1019
SHAN_HI_MOON 1020
THE_GOLDEN_POND 1021
POKIMON_I 1022
POKIMON_II 1023
SLEEPY_BEAUTY 1024
THE_MELODY 1025 1026
LOVE_STORY_II 1027
CINDERALA 1028
THE_GIRASIC_PARK 1029
BACK_TO_GIRASIC_PARK 1030
THE_GARZELA 1031 1032

customers.txt: JACK_WHITE 123 MAIN ROAD Raleigh 9197763838
JACK_BLACK 123 CAP ROAD Raleigh 9197762834
JACK_BLUE 123 CREE ROAD Raleigh 9197763124
JACK_BROWN 123 CROWN ROAD Raleigh 9197761111
JACK_RED 123 LYNN ROAD Raleigh 9197762222
JACK_INDY 123 RAY ROAD Raleigh 9197763333
JACK_CRIMSON 123 JAY ROAD Raleigh 9197764444
JACK_CRYON 123 NICE LANE Raleigh 9197765555
JACK_GRAY 123 JONE ROAD Raleigh 9197766666

Starter code posted below:

Explanation / Answer

sorry no idea

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote