Starting Out with C++: From Control Structures through Objects, Brief Version (8th Edition)
Starting Out with C++: From Control Structures through Objects, Brief Version (8th Edition)
8th Edition
ISBN: 9780134037325
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 11, Problem 1PC
Program Plan Intro

Movie Data

Program Plan:

  • Include the required header files.
  • Declare the structure named “MovieData”.
    • Declare the variables.
  • Declare a function “disp_Movie”.
  • Inside the main() function.
    • Create two variables “movie_1” and “movie_2” for “MovieData”.
    • Assign the value of movie title, director, year released and movie length information to movie 1 and movie 2.
    • Call the function disp_movie() to display the movie1 and movie 2.
  • Define the function “disp_movie()”.
    • In the function, display the move title, director of movie, year released and running time of movie in minutes.

Blurred answer
Students have asked these similar questions
C# Language You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60).   Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester.   In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie).   Grades are calculated as follows: A = 70 and over,   B = 60 (inclusive) -70,   C = 50(inclusive)-60 D =…
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, kelly
Stock Transaction ProgramLast month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:• The number of shares that Joe purchased was 1,000.• When Joe purchased the stock, he paid $32.87 per share.• Joe paid his stockbroker a commission that amounted to 2 percent of the amount he paid for the stock.Two weeks later Joe sold the stock. Here are the details of the sale:• The number of shares that Joe sold was 1,000.• He sold the stock for $33.92 per share.• He paid his stockbroker another commission that amounted to 2 percent of the amount he received for the stock. By writing a pseudo code and flow charts, design a program that displays the following information:● The amount of money Joe paid for the stock.

Chapter 11 Solutions

Starting Out with C++: From Control Structures through Objects, Brief Version (8th Edition)

Ch. 11.10 - Prob. 11.11CPCh. 11.10 - Write a function that uses a Rectangle structure...Ch. 11.10 - Prob. 11.13CPCh. 11.10 - Prob. 11.14CPCh. 11.10 - Prob. 11.15CPCh. 11.11 - Prob. 11.16CPCh. 11.11 - Prob. 11.17CPCh. 11.11 - Prob. 11.18CPCh. 11.11 - Prob. 11.19CPCh. 11.11 - Prob. 11.20CPCh. 11.12 - Look at the following declaration: enum Flower {...Ch. 11.12 - What will the following code display? enum {...Ch. 11.12 - Prob. 11.23CPCh. 11.12 - What will the following code display? enum Letters...Ch. 11.12 - Prob. 11.25CPCh. 11.12 - Prob. 11.26CPCh. 11 - Prob. 1RQECh. 11 - Prob. 2RQECh. 11 - Prob. 3RQECh. 11 - Look at the following structure declaration:...Ch. 11 - Look at the following structure declaration:...Ch. 11 - Look at the following code: struct PartData {...Ch. 11 - Look at the following code: struct Town { string...Ch. 11 - Look at the following code: structure Rectangle {...Ch. 11 - Prob. 9RQECh. 11 - Prob. 10RQECh. 11 - Prob. 11RQECh. 11 - Look at the following declaration: enum Person {...Ch. 11 - Prob. 13RQECh. 11 - The ______ is the name of the structure type.Ch. 11 - The variables declared inside a structure...Ch. 11 - A(n) ________ is required after the closing brace...Ch. 11 - In the definition of a structure variable, the...Ch. 11 - Prob. 18RQECh. 11 - Prob. 19RQECh. 11 - Prob. 20RQECh. 11 - Prob. 21RQECh. 11 - Prob. 22RQECh. 11 - Declare a structure named TempScale, with the...Ch. 11 - Write statements that will store the following...Ch. 11 - Write a function called showReading. It should...Ch. 11 - Write a function called findReading. It should use...Ch. 11 - Write a function called getReading, which returns...Ch. 11 - Prob. 28RQECh. 11 - Prob. 29RQECh. 11 - Prob. 30RQECh. 11 - Prob. 31RQECh. 11 - Prob. 32RQECh. 11 - Prob. 33RQECh. 11 - Look at the following statement: enum Color { RED,...Ch. 11 - A per store sells dogs, cats, birds, and hamsters....Ch. 11 - T F A semicolon is required after the closing...Ch. 11 - T F A structure declaration does not define a...Ch. 11 - T F The contents of a structure variable can be...Ch. 11 - T F Structure variables may not be initialized.Ch. 11 - Prob. 40RQECh. 11 - Prob. 41RQECh. 11 - T F The following expression refers to element 5...Ch. 11 - T F An array of structures may be initialized.Ch. 11 - Prob. 44RQECh. 11 - T F A structure member variable may be passed to a...Ch. 11 - T F An entire structure may not be passed to a...Ch. 11 - T F A function may return a structure.Ch. 11 - T F when a function returns a structure, it is...Ch. 11 - T F The indirection operator has higher precedence...Ch. 11 - Prob. 50RQECh. 11 - Prob. 51RQECh. 11 - Prob. 52RQECh. 11 - Prob. 53RQECh. 11 - Prob. 54RQECh. 11 - Prob. 55RQECh. 11 - Prob. 56RQECh. 11 - Find the Errors Each of the following...Ch. 11 - Prob. 58RQECh. 11 - struct TwoVals { int a, b; }; int main () {...Ch. 11 - #include iostream using namespace std; struct...Ch. 11 - #include iostream #include string using namespace...Ch. 11 - struct FourVals { int a, b, c, d; }; int main () {...Ch. 11 - Prob. 63RQECh. 11 - Prob. 64RQECh. 11 - Prob. 65RQECh. 11 - struct ThreeVals { int a, b, c; }; int main () {...Ch. 11 - Prob. 67RQECh. 11 - Prob. 1PCCh. 11 - Movie Profit Modify the program written for...Ch. 11 - Prob. 3PCCh. 11 - Weather Statistics Write a program that uses a...Ch. 11 - Weather Statistics Modification Modify the program...Ch. 11 - Soccer Scores Write a program that stores the...Ch. 11 - Customer Accounts Write a program that uses a...Ch. 11 - Search Function for Customer Accounts Program Add...Ch. 11 - Speakers Bureau Write a program that keeps track...Ch. 11 - Prob. 10PCCh. 11 - Prob. 11PCCh. 11 - Course Grade Write a program that uses a structure...Ch. 11 - Drink Machine Simulator Write a program that...Ch. 11 - Inventory Bins Write a program that simulates...Ch. 11 - Prob. 15PC
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning