Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING JAVA CREATE A UML DIAGRAM ALSO. Normal 1 No Spac... Heading 1 Heading 2 Heading 3 Heading 4 raph Styles USING JAVA Create a

USING JAVA
CREATE A UML DIAGRAM ALSO. image text in transcribed
image text in transcribed
Normal 1 No Spac... Heading 1 Heading 2 Heading 3 Heading 4 raph Styles USING JAVA Create a class for representing a movie theatre called Cinema with the following properties: A private static int data value named cinemaCounter that starts at 1000 and increments for each new restaurant item that is created A private array of string values called showings A private int value called cinemalD -A boolean value called openClosesd A no-argument constructor that creates a new Cinema object and performs the following: Sets cinemalD to cinemaCounter, then increments cinemaCounter Sets openClosed to false (closed) Sets showings to be size 3 with no values inside A two-argument constructor that creates a new Cinema object, accepts an int value, accepts a boolean value, and performs the following: Sets cinemalD to cinemaCounter, then increments cinemaCounter Sets openClosed to the boolean value -Sets the length of showings to the int value A void method called setshowings) that alows the user to input string values to populate the menu array A void method called setShowingsEasyl) that sets the first three indexes of the menu array to the following: "Oscar Bait", "Superhero Movie", "Romantic Comedy" A void method called details(0) that prints out the following properties of a Cinema: sinemalD and whether or not the cinema is open. If the cinema is open, details) will print the list of showings. In the main method, perform the following: -Create 3 new Cinema objects The first Cinema should have the default parameters The second Cinema should be open and have a menu size of 2 The third Cinema should be closed and have a menu size of 3 Change the first Cinema's openClosed value to true Call setshowingsEasy) for the 1st cinema -Call setShowings() for the 2nd cinema -Call details() for all three cinemas

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Show that the operators obey boson commutation rules.

Answered: 1 week ago

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago