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
Arada [10]
3 years ago
7

Write a single statement to print: user_word,user_number. Note that there is no space between the comma and user_number. Sample

output with inputs: 'Amy' 5
Engineering
1 answer:
kykrilka [37]3 years ago
8 0

Answer:

cout<<"''<<user_word<<"' "<<user_number;

Explanation:

The above question was answered using C++ programming language.

The keyword cout represents print and it carries out print operation only.

It prints all variable in front of it.

Assume the values of user_word and user_number to be Charles and 20, respectively.

The output of the above instruction would be

'Charles' 20 just as it is in the sample output in the question.

In java programming language, it is

System.out.print("'"+user_word+"' "+user_number);

In Qbasic, it is

PRINT "'"+user_word+"' "+ user_number

You might be interested in
HELP<br><br><br>the overall width of a part is dimensioned as 3.00 ± 0.02. what is the tolerance
MariettaO [177]

Answer:

Not knowing the units the tolerance is 0.02.  I would presume mm but hopefully your question has more detail.  

Explanation:

The tolerance is the portion after the main dimension (+/- 0.02).  In our case we have bilateral tolerance since there is tolerance in both directions (positive and negative).  If you were building a part the acceptable range would be 2.98 to 3.02 based on the tolerance provided.  

3 0
3 years ago
Read 2 more answers
To 3 significant digits, what is the temperature of water in degrees C, if its pressure is 350 kPa and the quality is 0.01
liq [111]

Answer:

138.9 °C

Explanation:

The datum of quality is saying to us that liquid water is in equilibrium with steam. Saturated water table gives information about this liquid-vapour equilibrium. In figure attached, it can be seen that at 350 kPa of pressure (or 3.5 bar) equilibrium temperature is 138.9 °C

3 0
3 years ago
A 800-MW steam power plant, which is cooled by a nearby river, has a thermal efficiency of 40 percent. Determine the rate of hea
Arturiano [62]

Answer:

Rate of heat transfer to river=1200MW

So the actual amount of heat rejected ti the river will be less as there will some heat loss to surrounding and in pipes

Explanation:

In order to find the actual heat transfer rate is lower or higher than its value we will first find the rate of heat transfer to power plant:

Efficiency=\frac{work}{heat transfer to power plant}

Heat transfer=\frac{work}{Efficiency\\} \\\\Heat transfer=\frac{800}{0.40}\\\\Heat transfer=2000MW

From First law of thermodynamics:

Rate of heat transfer to river=heat transfer to power plant-work done

Rate of heat transfer to river=2000-800

Rate of heat transfer to river=1200MW

So the actual amount of heat rejected ti the river will be less as there will some heat loss to surrounding and in pipes.

4 0
3 years ago
Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 3, print "To
weqwewe [10]

Answer:

#include <iostream>

using namespace std;

void PrintPopcornTime(int bagOunces) {

if(bagOunces < 3){

 cout << "Too small";

 cout << endl;

}

else if(bagOunces > 10){

 cout << "Too large";

 cout << endl;

}

else{

 cout << (6 * bagOunces) << " seconds" << endl;

}

}

int main() {

  PrintPopcornTime(7);

  return 0;

}

Explanation:

Using C++ to write the program. In line 1 we define the header "#include <iostream>"  that defines the standard input/output stream objects. In line 2 "using namespace std" gives me the ability to use classes or functions, From lines 5 to 17 we define the function "PrintPopcornTime(), with int parameter bagOunces" Line 19 we can then call the function using 7 as the argument "PrintPopcornTime(7);" to get the expected output.

8 0
3 years ago
I need ideas for what to build because I have some spare wood.
Misha Larkins [42]

Answer:

small guitar with no strings?

Explanation:

it would be fun to make i think

6 0
3 years ago
Other questions:
  • The yield strength of mild steel is 150 MPa for an average grain diameter of 0.038 mm ; yield strength is 250 MPa for average gr
    15·1 answer
  • A piece of corroded steel plate was found in a submerged ocean vessel. It was estimated that the original area of the plate was
    12·1 answer
  • A simply supported beam spans 25 ft and carries a uniformly distributed dead load of 0.6 kip/ft, including the beam self-weight,
    15·1 answer
  • Harmony in music is characterized by _____.
    14·2 answers
  • You are using a Geiger counter to measure the activity of a radioactive substance over the course of several minutes. If the rea
    8·1 answer
  • What are the important factors needed to be considered while selecting a brake or clutch?
    9·1 answer
  • A 13.7g sample of a compound exerts a pressure of 2.01atm in a 0.750L flask at 399K. What is the molar mass of the compound?a. 3
    15·1 answer
  • What is the most likely reason the rover won't travel in a straight line?
    9·1 answer
  • What is the maximum fine for knowingly refilling a disposable refrigerant drum?
    11·1 answer
  • Consider the function f(n) = n
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!