CS0401 COE0401 Intermediate Java Programming

CS0401 COE0401 Intermediate Java Programming

<p> CS0401 COE0401 Intermediate Java Programming</p><p>Summer 2007</p><p>Project 1- Movie Theatre</p><p>Description: Due date: June 27, 2007 11:59 PM Late Due date: June 29, 2007 11:59 PM </p><p>Design and implement a Java application for a movie theatre. This movie theatre shows only three movies at a time. This application should display a description of the three movies along with a picture from the movie. It should also allow the user to buy tickets from the program. </p><p>User Interface:</p><p>The GUI should look similar to the following:</p><p>There are four panels in the above GUI: three panels display the movie details and one panel allows the user to buy tickets. Additional panels may be used in order to nest the panels and organize their contents. Program Design:</p><p>This application is formed of three classes: Movie class, MovieTheatrePanel class and MovieTheatre class</p><p>Movie class The Movie class has the following members: name of the movie, its genre, the icon used to display the image, the number of minutes, number of tickets bought by the customer for this movie and its release date. In addition to the getters and setters, the Movie class has a method called buyTickets that takes in an integer number of tickets. This method modifies the number of tickets instance variable by adding the number of tickets that the user bought. </p><p>MovieTheatrePanel class This class extends JPanel. It is used to display the input panel used by the user to buy tickets. This class should have three objects of class Movie that represent the three different movies.</p><p>MovieTheatre class This is the driver class that displays the user interface. It also has a main method that is used to run the program. </p><p>Feel free to add any classes or methods that facilitate the implementation. The classes shown above are the minimum required classes.</p><p>Requirements</p><p>This application processes the user request when the submit button is pressed. It retrieves the data entered by the user and calls the necessary methods used to purchase tickets. It then displays the tickets that the user has already bought. Thus, your program should remember the tickets the user bought already to see all the movies. Here is an example: 1. The user enters the following and presses “Buy Tickets”</p><p>2. The following shows on the screen:</p><p>Notice that since the user has a student discount the price of the ticket is $6. The price for non-students is $8 per ticket.</p><p>3. The user then decides to buy four tickets for Spiderman III movie 4. The program then displays the following:</p><p>Thus, the application still remembers that the user has also bought 2 tickets for Shrek III.</p><p>Grading </p><p>Programming style: 10 pts Variable naming, program readability, comments</p><p>Functionality Movie class 25 pts MovieTheatrePanel class 20 pts MovieTheatre class 15 pts</p><p>Appearance 20 pts The user interface looks similar to the above GUI</p><p>Compiles without errors 10 pts</p><p>Extra Credits 10 pts </p><p>Submit suggestions for extra credit to the instructor for approval. You must submit it one week before due date.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us