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
Consider a sequence of 1's and 1's with the property that the sum of any prefix of the sequence is never negative For example th
MrMuchimi

Answer:

Check the explanation

Explanation:

Answer: Solution: Algorithm:

Step 1: Start.

Step 2: Create a stack Step

3: Push an initial stack variable, it will represent that, stack is empty.

Step 4: Get input

             If +1 then push "+1"

             Else if -1 then pop

Step 5: Repeat until all input finish or Stop if empty stack variable popped. Step 6: Stop.

It is a pushdown automata problem.

It can be also represented as:

X =1+1* —1* 1No(+1)>= No(-1)}

4 0
3 years ago
Nowadays computer games are mostly available on external<br> hard disk.<br> Is it true or false?
sergey [27]

Answer:

false

Explanation:

because a lot of times they are downloads without the disk

7 0
4 years ago
Read 2 more answers
PART ONE: For this assignment, create an html page that has a login form. The form should have 3 input elements -- 1. type text
Digiron [165]

Answer:

The following code are in HTML language:

Login_page.html :

<!DOCTYPE html>

<html lang="en">

<head>

<title>Login_Form</title>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="css/style.css" rel="stylesheet">

</head>

<body>

<form action="Login_page.php" method="post">

<table>

<tr>

<td>UserName</td>

<td>

<input type="text" name="username" placeholder="Username"/>

</td>

</tr>

<tr>

<td>Password</td>

<td>

<input type="password" name="password" placeholder="Password"/>

</td>

</tr>

<tr>

<td>

<input type="Submit" name="login" value="submit"/>

</td>

</tr>

</table>

</form>

</body>

</html>  

Explanation:

Here, we have to use the HTML tag, and HEAD tag and the TITLE tag for the title of the page.

Then, we have to create a table for the structure of Form page by using table tag.  

Then, we have to create form by using Form tag

Then, create two text boxes for the username and the password with the use of an input tag.

Then, we have to create a submit button for submitting the following details with the use of an input tag.

3 0
3 years ago
If you consider your new colleagues a rich source of information about items that your team had not yet discussed or considered,
stepan [7]

Answer:

False

Explanation:

8 0
4 years ago
Read 2 more answers
Which term describes what you do when you use someone else's work and pretend it is your own??
jenyasd209 [6]
This is called, plagiarism.
3 0
4 years ago
Other questions:
  • Write an example method that overrides the operator to create a new book whose title is a concatenation of the titles of two boo
    15·1 answer
  • Which of the following is a unique feature of credit unions?
    6·1 answer
  • Question 1(Multiple Choice Worth 5 points)
    9·1 answer
  • (20points)
    6·1 answer
  • You designed a program to find the midpoint of two points. Which step below corresponds to finding the average of the x-coordina
    15·1 answer
  • (I WILL MARK BRAINLIST) What are the most important things a student should consider when creating a presentation on something t
    7·2 answers
  • You have purchased a used computer from a computer liquidator. When you boot the computer, you find that there has been a passwo
    11·1 answer
  • Write an algorithm to multiply two numbers​
    10·2 answers
  • How do i delete a question ?
    8·1 answer
  • This is a standard routine used to perform a mathematical task in excel is called?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!