This is jus an exercises I saw on the internet, & I've done bits and pieces but Im hella stuck... so if anyone might help, it wud be nice DVD Class -title : String -category : String -newRelease : boolean -availableForRent : boolean <<constructor>>+Dvd( ) <<constructor>>+Dvd( title : String , category : int, newRelease: boolean, avail : boolean ) +setTitle( aTitle : String ) : void +setCategory( aCategory : int ) : void +setRelease( rel : boolean ) : void +setAvailable( avail : boolean ) : void +getTitle( ) : String +getCategory( ) : String +isNewRelease( ) : boolean +isAvailable( ) : boolean +toString( ) : String -------------------------------------- Customer Class -firstName : String -surname : String -phoneNum : String -credit : double <<constructor>>+Customer( ) <<constructor>>+ Customer ( fName : String , sName : String , phone : String, credAmt: double) +setName( fName : String ) : void +setSurname( sName : String ) : void +setPhoneNum( phone : String ) : void +setCredit( credAmt : double ) : void +getFirstName( ) : String +getSurname( ) : String +getPhoneNum( ) : String +getCredit( ) : double +toString( ) : String --------------------------------------------- You are asked to write an information management application for a small DVD rental store that is just starting up. Additional info: Dvd class Possible categories are horror, sci-fi, drama, romance, comedy, action, cartoon. Customer class When a customer is added to the system he/she must pay R100 which is captured as credit.
Movies and customers are to be stored in arrays. To keep this project manageable, the maximum number of DVDs and customers for this application will be 10.
This application must be menu-driven.
Your application can have a console interface (JOptionPane, Scanner, System.out.print) OR GUI.
Menu options are: Add Sub-menu: Customer Movie Delete Sub-menu: Customer Movie Sorted List of Movies Sorted List of Available Movies Sorted List of Customers List Movies that start with� Rent Movie
Details of Menu options: Add When this option is selected, a sub-menu is displayed with the options to add a customer or a Dvd to the system. If there is no more space in the arrays, display an error message. When entering a movie category, present the user with a list of categories and codes as shown below. Only a code needs to be selected. 1.Horror 2.Sci-fi 3.Drama 4.Romance 5.Comedy 6.Action 7.Cartoon
Delete When this option is selected, a sub-menu is displayed with the options to delete a customer or a Dvd from the system. A customer�s phone number is used to locate a customer to delete from the array. A movie title is used to locate a Dvd to delete from the array.
Sorted List of all Movies Sort on titles
Sorted List of Available Movies Sort on titles
List Movies that start with� The user enters a letter and all movies that start with that letter are listed. �.all movie lists must show the movie title, category, whether new release or not, whether available or not.
Sorted List of Customers �.customer list sorted on surname, must show the customer name, surname, phone number, credit.
Rent Movie The customer must exist on the system before this transaction can take place. Use the customer�s phone number to verify this. The requested movie title must be verified to be on the system, as well as being available for rent. The fee for a movie is R10, and new releases are R5 more. This fee is deducted from the customers credit. If a customer has insufficient credit the option to pay the movie fee for this transaction is shown. The customer can choose to pay the fee, or not and thereby cancel the transaction. After a valid transaction, the rented movie is then marked as �not available�.
Joined: Jun 15, 2008
no replies yet...lol
oh well i jus came thru to tell ya'll that i have completed the assignment now
ta ta , i'll post the source code when i come back