Results 1 to 9 of 9
  1. #1
    Kamolli is offline Member
    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    Smile Help with my university exercise :)

    Hello guys,

    Hopefully everything is fine with you, i am new to this forum, and to programming in general. I have a lot of experience in networking (Cisco) and i can help ofcourse. Maybe not in this forum, cause its only for Java, and we dont wanna get the Admins angry

    So, this is my first topic in the forum, and its all basically about the exercise that i have to do in my university course. So please, anyone who can provide any help, should just post it. Really, anything, any small tiny piece of info would be great .

    The help/provided info can be either code or models, just post whatever you know, or feel that it can be some sort of an answer.

    So here is the exercise description

    ---------------Q----------------
    Create a model representing a cinema, which is described below. The description contains information of different quality. Think twice before you model it or before you decide to drop it. If you are uncertain document your thoughts. Draw a diagram which represents the model. You can draw either simple “boxes and lines” using a pen and a piece of paper, UML Class Diagrams, or something similar. Subsequent to the diagrams, implement your model in Java and create a simple application using your model. At least, a Java Swing Table [2] has to use parts of your model to edit and represent some data. Strictly separate your model from your application. If you have to make your own assumptions, document them in a separate file. We suggest not using any tools not mentioned by us, since working with them and understanding these tools are mostly very time consuming and confusing instead of being helpful.

    The Domain and Model Description

    A cinema is located in a building with a unique address. The building has 3 floors. The first floor offers a huge foyer where the tickets are sold and some bars offer some food. In the second and third floor, the projection rooms are located. There are 5 rooms, which can be entered from the 2nd and the 3rd floor. Therefore, these rooms are two-storied, with 2 exits on each floor. The rooms have different seating capacity, where each seat identity is unique:

    Room 1 250 seats in 20 rows
    Room 2 75 seats in 20 rows
    Room 3 50 seats in 11 rows
    Room 4 50 seats in 5 rows
    Room 5 20 seats in 4 rows

    Different films are shown at the projection rooms1. A timetable for all available films is provided to the customers, showing name, room, start- and end-time. Customers can purchase tickets at the ticket office on the 1st floor. Tickets can be purchased in different pricing categories:

    7 Euro seats in rows 1 – 3
    10 Euro seats up from row 4
    5 Euro seats on Mondays
    13 Euro seats for films longer than 120 minutes




    Pricing categories may change over time – for instance, during Christmas season special prices will apply. The price for a ticket is determined by the system at the time the ticket is purchased. There are 4 ticket selling windows. A ticket is valid for a defined film presented at a defined date and time for a defined seat. A duplicate ticket disposal must be prevented. Employees are hired for selling tickets and for checking tickets on each exit, but an employee cannot work on two tasks for the same time. Also, staff is not allowed to work for more than 5 hours. A shift schedule represents who is working on which place.
    The Application

    a) Implement your model using Java [4]. Use the Eclipse IDE [3] (including modeling tools) so you get used to it for future assignments.
    b) Write a small application to create some sample data. The application must be implemented using Java Swing [1], and therefore has to strictly follow the model view controller pattern. Do not change your model fitting your application! At least, you have to provide one Java Swing Table [2] which uses your model for data input and visualization. For instance, the table can show the film timetable for the day, where each cell can be edited and new lines can be added.

    --------------UNQ------------

    Thanks a lot

    Cheers
    Last edited by Kamolli; 11-05-2013 at 02:21 PM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: Help with my university exercise :)

    Also posted at: Help with my university exercise :)

    Please post links to all the sites you have posted this on.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Kamolli is offline Member
    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help with my university exercise :)

    Quote Originally Posted by Norm View Post
    Also posted at: Help with my university exercise :)

    Please post links to all the sites you have posted this on.
    Just here and on www.javeprogrammingforums.com

    The link is here

    Help with my university exercise :)

  4. #4
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,675
    Rep Power
    5

    Default Re: Help with my university exercise :)

    You like so many people this week forget to actually ask a question. What are you stuck on?

    EDIT: read on the other thread that this is a case of "I don't know where to begin". Hoo boy, I'm not burning my fingers on a thread like this again. I already have more enemies than friends in this world.
    Last edited by gimbal2; 11-05-2013 at 04:19 PM.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    Kamolli is offline Member
    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help with my university exercise :)

    Quote Originally Posted by gimbal2 View Post
    You like so many people this week forget to actually ask a question. What are you stuck on?

    EDIT: read on the other thread that this is a case of "I don't know where to begin". Hoo boy, I'm not burning my fingers on a thread like this again. I already have more enemies than friends in this world.
    I am stuck in the design, this is my biggest problem. Coding can be a bit easier then (although that i have actually never written a code before) but i will try my best.

    If you have any ideas about a cool design please share it. I think for programmers, this is not a big issue, as we are all beginners in uni. But we still find it hard.

  6. #6
    superhaNds is offline Senior Member
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    262
    Rep Power
    2

    Default Re: Help with my university exercise :)

    Do first, a UML class diagram by reading the description. Look for nouns for entities and any information that needs to be stored about them (data fields). Verbs for relationships between them. First, do a conceptual one, just the class name with attributes and then start to think the behavior of each entity. After you complete this the implementation is nothing

  7. #7
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,675
    Rep Power
    5

    Default Re: Help with my university exercise :)

    Quote Originally Posted by Kamolli View Post
    I think for programmers, this is not a big issue, as we are all beginners in uni. But we still find it hard.
    Wrong. Plenty of programmers can write the most epic code and fail miserably to ever be useful because they can't even imagine a system or application design if it was staring them in the face. Design is the realm of true software engineering. I'm not going to "share" anything until I have seen you at least make a start. That's for your own good, not because I am a mean person.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    Kamolli is offline Member
    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help with my university exercise :)

    Quote Originally Posted by superhaNds View Post
    Do first, a UML class diagram by reading the description. Look for nouns for entities and any information that needs to be stored about them (data fields). Verbs for relationships between them. First, do a conceptual one, just the class name with attributes and then start to think the behavior of each entity. After you complete this the implementation is nothing
    Thanks a lot man, you made it a bit clear to me :)

  9. #9
    Kamolli is offline Member
    Join Date
    Nov 2013
    Posts
    5
    Rep Power
    0

    Default Re: Help with my university exercise :)

    Quote Originally Posted by gimbal2 View Post
    Wrong. Plenty of programmers can write the most epic code and fail miserably to ever be useful because they can't even imagine a system or application design if it was staring them in the face. Design is the realm of true software engineering. I'm not going to "share" anything until I have seen you at least make a start. That's for your own good, not because I am a mean person.
    Thanks to you also, i will start with the UML design and show you what i ve reached :)

Similar Threads

  1. Class exercise CS106A (Stanford university)
    By ccie007 in forum New To Java
    Replies: 2
    Last Post: 09-11-2010, 01:47 AM
  2. Help for University Project
    By ja107 in forum Networking
    Replies: 3
    Last Post: 03-18-2010, 10:22 AM
  3. Help for University Project
    By ja107 in forum Networking
    Replies: 1
    Last Post: 03-04-2010, 12:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •