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
A(n) ___________________________ is a pl/sql block that executes in place of a dml action on a database view.
Zinaida [17]

A(n)<u> Instead Of trigger </u>is a pl/sql block that manages in place of a dml action on a database view.

<h3>Why instead of triggers are used?</h3>

INSTEAD OF triggers describe how to perform insert, update, and delete functions against complex views. INSTEAD OF triggers permit applications to use a view as the sole interface for all SQL operations.

<h3>What are the after triggers?</h3>

An after trigger runs after the connected insert, update, or delete changes are involved to the table. The WHEN condition can be used in an SQL trigger to specify a state. If the condition evaluates to true, the SQL views in the SQL trigger routine body are run.

To learn more about Instead Of trigger, refer

brainly.com/question/21564232

#SPJ4

6 0
2 years ago
What are the different components of the cloud architecture?
sashaice [31]

Cloud computing architecture can be described as components and subcomponents required for cloud computing. Typically, these components consist of front (fat client, mobile device, thin client) and black end platforms (storage, servers), a cloud based delivery, and a network (Internet, Internet, Cloud). When all of these components are combined, they make up a cloud architecture.

3 0
3 years ago
11)When, if ever, will the geometric average return exceed the arithmetic average return for a given set of returns?A) When the
grigory [225]

Answer: E. Never

geometric average return can NEVER exceed the arithmetic average return for a given set of returns

Explanation:

The arithmetic average return is always higher than the other average return measure called the geometric average return. The arithmetic return ignores the compounding effect and order of returns and it is misleading when the investment returns are volatile.

Arithmetic returns are the everyday calculation of the average. You take the series of returns (in this case, annual figures), add them up, and then divide the total by the number of returns in the series. Geometric returns (also called compound returns) involve slightly more complicated maths.

6 0
3 years ago
Which of the following is not a benefit of aws cloud computing​
Black_prince [1.1K]
Answer: High latency, temporary and disposable resources are not the benefits of AWS cloud computing.

Explanation: AWS is the most reliable and broad platform that offers a wide range of feature services to individuals globally.

Hope this helps (:
4 0
3 years ago
What is the decimal number of binary number 1101011 if the binaryis represented as a(n)
Kruka [31]

Answer:

a. Unsigned integer  107

b. Signed magnitude integer  -43

c. One’s complement integer  -20

d. Two’s complement integer  21

e. ASCII character k

Explanation:

a) For unsigned integer,

   We put this value in representation of binary and put binary number in it.

   we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)

                         64  32  16  8  4  2  1

                           <u>1     1    0   1   0   1   1</u>        

The positions at 1 is present,we will add those numbers.In this                (64+32+8+2+1) =107 is there.

So,107 will be the representation.

b)For signed magnitude integer,

  The representation is just the same,but as signed integers the first bit represent the negative number.

                         64  32  16  8  4  2  1

                           <u>1     1    0   1   0   1   1</u>    

The first bit is for Negative(-),then we will add other number where 1 is present.In this (32+8+2+1)=43.We will add (-) due to signed integers.

So,-43 will be the representation.

c) For One's complement integer,

We will compliment the bits of binary number.At the place of 1 ,place 0 and at the place of 0,place 1.

                             <u>1     1    0   1   0   1   1</u>    

    Compliment   <u> 0   0    1   0  1   0   0</u>    

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          <u> 0   0    1   0  1   0   0</u>  

The positions at 1 is present,we will add those numbers.In this (16+8)=20    we will put negative at the starting because of the compliment

So, -20 will be the representation.

d)For Two's complement integer,

After compliment of bits At the place of 1 ,place 0 and at the place of 0,place 1.Then,we add 1 bit to the Least significant bit(Lsb).

                             <u>1     1    0   1   0   1   1</u>    

   Compliment     <u> 0   0    1   0  1   0   0</u>    

 Add 1 to Lsb       <u> 0   0    1   0  1   0   0</u>

                                                       +  <u> 1</u>

   Number           <u> 0   0    1   0  1   0   1</u>

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          <u> 0   0    1   0  1   0   1</u>  

The positions at 1 is present,we will add those numbers.In this (16+8+1)=21

So,21 will be the representation.

e. For ASCII character,

First,convert it into decimal

  We multiply bits with 2^n,from ascending numbers to 0 to (n-1),and add them

           =   1 * 2^6 + 1*2^5 + 0* 2^4 + 1*2^3 + 0* 2^2 + 1*2^1 + 1* 2^0  

              =   64+32+8+2+1

                =  107

Then,we check in Ascii table 107 decimal number's position ,k is there.

So,k will be the representation.

8 0
3 years ago
Other questions:
  • nancy finds it difficult to locate emails in her inbox . what action should she take to locate a particular type of email instan
    12·1 answer
  • Im trying to type in answers but where the text box is supposed to be it says unlock answers. What does that mean?
    11·1 answer
  • The IBM 370 mainframe computer was introduced in 1970. The 370 Model 145 could hold up to 524,288 bytes of data (512 Kbytes). It
    8·1 answer
  • ____ is the use of networking technology to provide medical information and services.
    14·1 answer
  • You need a collection to represent secret agents. Every agent has a unique codename that identifies them, and an Agent object th
    14·1 answer
  • A weighted GPA counts__more highly.
    12·1 answer
  • Construct :<br> 4 input NOR Gate Truth Table.
    14·1 answer
  • Terry visits the website www.examplewebsite.org. What can you gather about the site from the domain?
    8·1 answer
  • After a Hacker has selects her target, performed reconnaissance on the potential target's network, and probed active Internet Ad
    13·1 answer
  • Identify the correctly constructed ALTER TABLE statement to add a UNIQUE constraint to the column customer_number with the const
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!