Movie Data
Write a
Title
Director
Year Released
Running time (in minutes)
Include a constructor that allows all four of these member data values to be specified at the time a MovieData variable is created. The program should create two MovieData variables and pass each one in turn to a function that displays the information about the movie in a clearly formatted manner. Pass the MovieData variables to the display function by value.
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Starting Out with C++: Early Objects (9th Edition)
Additional Engineering Textbook Solutions
Programming in C
C How to Program (8th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Computer Science: An Overview (12th Edition)
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Java How To Program (Early Objects)
- name formatter on c# create an application that lets the user enter the following pieces of data: • the user’s first name • the user’s middle name • the user’s last name • the user’s preferred title (mr., mrs., ms., dr., etc.) assume the user has entered the following data: • first name: kelly • middle name: jane • last name: smith • title: ms. the application should have buttons that display the user’s name formatted in the following ways: ms. kelly jane smith kelly jane smith kelly smith smith, kelly jane, ms. smith, kelly jane smith, kellyarrow_forwardThe terms "data member" and "local variable" refer to two different kinds of variables.arrow_forwarduse c code to develop a program In this program you will create a structure called class to hold the information of a class in Seneca college’s buildings. The information required for each class is as follows Campus name (like newham or Seneca@york) Building name (like Victor Phillip Dahdaleh Building) floor (like 1 2 3 4 5, …) class code (like DB2109) size of class (40 60 25) has projector (yes/no) has podium (yes/no) has whiteboard (yes/no) The following is the declaration of the structure Struct class{ Char campus[101]; Char building[101]; --- --- } Complete the above structure template based on the list of attributes provided Implement the followinggetClass function that receives a pointer to a vehicle and fills it up with user data. No user input validation is necessary. The user should be properly prompted for each field. Be careful with proper usage of . (dot) operator and -> (arrow) operator as this is the part of the code that gets the mark! void getClass…arrow_forward
- Using c++arrow_forwardC++ pleasearrow_forwardContactinformation Create a program with the following requirements: 1. You must have a data structure for personal contact information. 2. Declare one of your contact information data structures locally in main 3. Create a function that allows users to enter in all of the information that populates the data structure that was passed in. 4. Create a function that displays the information that was entered into the data structure. Please enter your contact information First Name:sam Last Name:hill city:hereville State:nc zip:12345 Phone:9998887654 Here is the information you entered First Name:sam ast Name:hill city:hereville State:nc Zip:12345 Phone:9998887654 Process returned e (exe) execution time : 17.933 s Press any key to continue.arrow_forward
- Hi I need help please I am supposed to create a display function that will display the songs in an array, but I am stuck The display member function takes a string parameter representing a keyword that would be used to search the invoking PlayList object. The function should display the titles of songs that contain the given string keyword, case-insensitive. If no match is found, the function shall display a message indicating no match is found. The default value for keyword is an empty string... " ", indicating that the function should display all song titles in the PlayList if nothing is enteredarrow_forwardDefine a struct type that represents an exercise plan. The struct should store the following data: plan name (a character array of size 50) and goal calories to burn (an integer). The type should be renamed from struct exercise_plan to Exercise_plan.arrow_forwardIn C#, the data type a programmer can create is known as __ type. custom user-defined enumerated structuredarrow_forward
- Module/Week 6 Assignment (User-defined: Simple Data Types, String Types) You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the…arrow_forwardC++ beginnerarrow_forwardText-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. Modify the application below (week3.py) so that the selection variable is sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. You will need to add an if statement in the choice() function to make the correct selection.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT