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
Flura [38]
3 years ago
5

The Thing method printMessage prints a string consisting of the name of the object followed by "_is_great". Suppose the name of

the Thing object favFood is "pizza". Write a statement that uses the printMessage method to print the string "pizza_is_great". Write the statement below.
Computers and Technology
1 answer:
Harman [31]3 years ago
4 0

Answer:

Written in C++

The statement that prints the required output is:

<em>printMessage(favFood); </em>

Explanation:

The full program is with comment is:

#include<iostream>

using namespace std;

//The method begins here

void printMessage(string favFood){

//This line prints the required output

cout<<favFood<<"_is_great";

}

//The main method starts here

int main()

{

//This line declares favFood as string

string favFood;

//This line prompts user for input

cout<<"Food: ";

//This line gets the input

cin>>favFood;

//This line calls the printMessage method

printMessage(favFood);

return 0;

}

You might be interested in
Format character of Date function that display the day of the month in 2 digits with leading zeros such as 01 to 31
JulsSmile [24]

Answer:

b.d

Explanation:

The format of the outputted string format totally depends upon the string format character according to the question the answer is format charatcer d.

It represents the day of the months in 2 digits in numerical format with leading zeroes.

L represents whether the year is a leap year or not.

D represents the days of the month in textual format with three characters like Sun for sunday.

j It represents the days of the month without leading zeroes.

5 0
3 years ago
what are the advantages of breaking up a single logical message into a number of fixed-sized packets and then sending each one o
aleksklad [387]

Explanation:

These are the advantages of breaking up a single logical message into a number of fixed sized packets.

- When messages are broken into packets it increases the performance and also the reliability of the internet

- if there is an error in a single packet, this error is not going to affect the entire message.

- the efficiency of the communication line in the internet is improved.

- there is a reduction of traffic. Each packet in a single message can be transmitted through different routes.

- It reduces idleness as each packet can send from different program so each program has a service.

8 0
3 years ago
Help please im not sure what this means T^T
Vesna [10]

Answer:

14

Explanation:

7 0
3 years ago
Read 2 more answers
A shop will give discount of 10% if the
wlad13 [49]

Answer:

10%÷100 it is correct answer

6 0
3 years ago
Which of these components is a part of the central processing unit (cpu) of a computer??
Svet_ta [14]
Registers, arithmetic-logic unit (ALU), program counter (PC)...
7 0
3 years ago
Other questions:
  • Which of these statements is true?
    9·1 answer
  • Dams provide what kind of energy ?
    5·2 answers
  • Perform online or offline research to learn more about film elements. Then, write a short report on the essentials of filmmaking
    13·1 answer
  • true or false manual handling of materials accounts for the primary source of energy in the workplace
    13·2 answers
  • A sentinel value ________ and signals that there are no more values to be entered:____
    14·1 answer
  • you where discussing software piracy with a friend and were surprised to learn how software piracy can impact your life every da
    12·1 answer
  • Antivirus software uses ________ to search for known viruses.
    9·1 answer
  • Smith, Smith, Smith, and Smith (S4) is a regional accounting firm will be moving to a new four-story building. There will two Lo
    5·1 answer
  • Difference between ancient and modern mode of information <br> transmission
    12·1 answer
  • Write a single statement that assigns avg_sales with the average of num_sales1, num_sales2, and num_sales3.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!