1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Olenka [21]
3 years ago
13

Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Rele

ased Running Time (in minutes) The program should create two MovieData variables, store values in their members, and pass each one, in turn, to a function that displays the information about the movie in a clearly formatted manner.
Computers and Technology
1 answer:
Len [333]3 years ago
7 0

Answer:

#include <iostream>

#include <string>

using namespace std;

struct MovieData {

string Title;

string Director;

unsigned short YearReleased;

unsigned short RunningTime;

};

void displayMovieInfo(MovieData &md) {

cout << "The Title is: " << md.Title << endl

<< "The Director is: " << md.Director << endl

<< "The Year of Release: " << md.YearReleased << endl

<< "The Running Time: " << md.RunningTime << " minutes" << endl;

}

int main() {

MovieData firtMovie, secondMovie;

firtMovie.Title = "Starship Troopers";

firtMovie.Director = "Paul Verhoeven";

firtMovie.YearReleased = 1997;

firtMovie.RunningTime = 129;

secondMovie.Title = "Alien vs. Predator";

secondMovie.Director = "Paul W. S. Anderson";

secondMovie.YearReleased = 2004;

secondMovie.RunningTime = 108;

cout << endl;

displayMovieInfo(movFirst);

cout << endl;

displayMovieInfo(movSecond);

cout << endl;

system("pause");

return 0;

}

Explanation:

In this program a structure that contains the class feilds for four attributes of a movie (Title, Director, Year Released and Running Time) we declared this with their appropriate data types.

Next we create a function (Method) called displayMovieInfo that will print a clearly formatted output of the movies when called and given appropriate parameters.

Finally we create the main function where we create two movie objects and make function calls to the displayMovieInfo and pass the two movies to the displayMovieInfo function to display their information

You might be interested in
Describe what a structure is in a living thing?
frutty [35]

Answer:

cells and tissue

Explanation:

8 0
4 years ago
You have been hired as a Systems Analyst in a famous Burger chain. Due to its popularity, the demands from customers also increa
IceJOKER [234]

a. Assume you are preparing a Customer Satisfaction Questionnaire. What types of questions would you include? Prepare 5 questions that you would ask.

The questions that I would ask would be designed in order for me to know whether our organizational programs have translated to a lower customer satisfaction. Examples of those questions would be:

1. Do you enjoy eating at our place?

2. How would you compare our service  in the past to our service now?

3. How likely are you to recommend our restaurant to your friends?

4. Is there any area where you think we could improve?

5. Do you have any other suggestions for us?

b. What type of questions would you ask the waiters and cooks during the interview? Prepare 5 questions (each) that you would ask waiters and cooks.

I would ask questions that would allow me to determine whether these people are able to work in a fast-paced environment. For example:

1. How good are you at working under pressure?

2. Do you find busy environments stressful?

3. Are you good at multitasking?

4. Have you worked at a busy restaurant before?

5. Do you have a cooperative spirit?

c. What modern requirements determination methods are appropriate for this project?

Prototyping is the requirement that would most help in this task.

7 0
3 years ago
What are two example of ways an electronic record may be distributed to others?
murzikaleks [220]
By email or publishing on the internet, I hope that helps!
4 0
3 years ago
____ are likely in the event of a hacker attack, when the attacker retreats to a chat room and describes in specific detail to h
Masja [62]

Answer:

Follow-on incidents.

Explanation:

When the hacker hacks something successfully and after that when he or she  discusses or describes the details to his or her associates and the method which he or she used to do the hacking is called Follow-on incidents because the hacker has successfully completed his or her conquest the event is happening after that.

4 0
4 years ago
A word root is used to link a suffix that begins with a vowel. Which of the following words is an example of this rule? Group of
QveST [7]

Answer:

The answer is A.

Explanation:

5 0
4 years ago
Other questions:
  • Which type of color mixing do painters with a real brush and paints use?
    5·1 answer
  • A _____ is a digital media file distributed over the Internet using syndication feeds for playback on mobile devices and persona
    6·1 answer
  • Which country does coriander come from
    11·2 answers
  • Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per l
    13·1 answer
  • Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
    6·2 answers
  • What specific database stores local user accounts on local computers, and allows users to sign in to and access resources only o
    9·1 answer
  • Use of the Internet for recruiting is: a. popular with job seekers, but not recruiters. b. the most commonly used search tactic
    5·1 answer
  • 100BaseT network uses the TCP/IP protocol suite exclusively, and workstations on your network obtain addresses dynamically from
    6·1 answer
  • In Microsoft Word you can access _ the command to the mini toolbar
    14·2 answers
  • Which technology provides a solution to IPv4 address depletion by allowing multiple devices to share one public IP address
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!