Display a summary of all of the movie titles

Assignment Help Data Structure & Algorithms
Reference no: EM131274211

Lab Assignment

Goal:

The purpose of this lab is to demonstrate an understanding of working with arrays of objects.

Problem:

You are working at the Johnson Center Cinema. The theatre must keep track of the titles and lengths of all movies shown in the theatres. In addition, the cinema manager also wants to know which movie is the longest, so they can sit those people in the theatre with the most comfortable seats. At any given time, the theatre can have up to 5 movies playing. Create an object oriented solution that allows the theatre manager to enter up to 5 movies playing. Keep in mind you overheard the manager saying the theatre is considering expansion in the future and may want to increase the number of movies it can show. Display a summary of all of the movie titles, the number of movies entered, and the length of the longest movie. Note: Remember the good design principles you have already learned in the course. In addition, you must demonstrate use of an array of objects. Hint: Don't forget about the different modifiers available (e.g. static) to determine what might be needed for each variable and method. The example run below shows how the program would run.

Reference no: EM131274211

Questions Cloud

Examine health patterns and practices transmitted : Examine health patterns and practices transmitted across generations.
Changes the permissions on all the existing files : Using "absolute" (numeric) notation, changes the permissions on all the existing files in the ~/NetworkingClass/scripts directory so that the "user" (owner) has all permissions, all users in the same group have read and execute permissions, and al..
Effects of social networking including its benefits : In your opinion and based on your research, submit a post discussing the effects of social networking including its benefits, its negative influences, and how a Christian should deal with the technology?
Minimize the number of gates in design : Design a gate-level circuit that computes the function , where the input X is a 3-bit unsigned number represented by X2X1X0 and the output Y is a 7-bit unsigned number represented by Y6Y5Y4Y3Y2Y1Y0. Minimize the number of gates in your design
Display a summary of all of the movie titles : Display a summary of all of the movie titles, the number of movies entered, and the length of the longest movie. Note: Remember the good design principles you have already learned in the course.
Design a program that has two parallel arrays : Design a program that has 2 parallel arrays: a String array named people that is initalized with the names of seven strangers, and a string array named phonenumbers that is initalized with the seven strangers phonenumbers.
Identify and describe the topic of consideration : Identify and describe the topic of consideration. ((Bill of rights)) In ACA
American accounting association decision-making model : Work through this scenario using the American Accounting Association decision-making model, and decide what action Luke should take.
What is the difference between composition and aggregation : What is the difference between composition and aggregation? Draw class diagram based on the code below. What is composition and what symbol is used to represent it?

Reviews

Write a Review

 

Data Structure & Algorithms Questions & Answers

  Data structures class

data structures class this project will give you an introduction. There are two important data structures that you will learn and use. The first is a stack, it is a LIFO (Last In First Out) structure. You can think of it like a a stack of plates in y..

  Coefficients of algorithm and negative coefficient mean

How could you utilize the larger grid size and longer time step? Write down the coefficients of your algorithm? What would negative coefficient mean?

  Describe the base case of a recursive algorithm

Which of the following statements could describe the base case of a recursive algorithm? You are using a language that does not support recursion. What data structure would you use to traverse a binary search tree in order

  Creating an interactive java program

Create an interactive Java program that illustrates the use of constructors, methods, loops and arrays.

  Create a table that depicts the runtime for arrays of length

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain.

  Write a print function that can be called to print the tree

Write a print function that can be called to print the tree. The printed output should contain the node level number in parentheses, its data, and its balance factor.

  Determine how the representation of internal data

Imagine you are asked to write a program to print out a yearly calendar. In this program, the user enters the year desired, and the output is a calendar for that year. Determine how the representation of internal data will affect the way in which ..

  Computing minimal length of key-average cracking time given

If Encrypt-It-Rite would like to increase average cracking time to at least 100 years, determine the minimal length of the key?

  Implement a virtual memory simulator based on demand paging

Will simulate the step by step execution of the OPT algorithm using the stored reference string; if there is no reference string stored yet, an error message must be displayed.

  Write a function called halfsum that takes as input

Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it.

  How do these control lines actually become asserted

The ALU has various control lines that determine which operation to perform - "How do these control lines actually become asserted?"

  Develop a flowchart and provide a brief explanation

Create a hierarchy chart depicting the chosen situation and develop a flowchart and provide a brief explanation for it.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd