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
kolezko [41]
3 years ago
11

Each cout statement has a syntax error. Type the first cout statement, and press Run to observe the error message. Fix the error

, and run again. Repeat for the second, then third, cout statement. cout << "Num: " << songnum << endl; cout << int songNum << endl; cout << songNum " songs" << endl; Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum = 5, the second with songNum = 9. See How to Use zyBooks.
Engineering
1 answer:
saul85 [17]3 years ago
4 0

Answer:

1. cout << "Num: " << songNum << endl;

2. cout << songNum << endl;

3. cout << songNum <<" songs" << endl;

Explanation:

//Full Code

#include <iostream>

using namespace std;

int main ()

{

int songNum;

songNum = 5;

cout << "Num: " << songNum << endl;

cout << songNum << endl;

cout << songNum <<" songs" << endl;

return 0;

}

1. The error in the first cout statement is that variable songnum is not declared.

C++ is a case sensitive programme language; it treats upper case and lower case characters differently.

Variable songNum was declared; not songnum.

2. Cout us used to print a Variable that has already been declared.

The error arises in int songNum in the second cout statement.

3. When printing more than one variables or values, they must be separated with <<

You might be interested in
Twenty sprint cyclists were randomly selected to be in a study designed to test the effectiveness of 4 weeks of creatine supplem
Leokris [45]

Answer:

True. This study utilized a placebo.

Explanation:

Firstly, let's define a placebo.

A placebo is something that seems to be a "real" medicine, however, it is not. It could be a pill, a liquid or other presentations of "Non- real" treatments. When using a placebo, we can affirm that they do not have in their composition an active substance that can improve health.

In this case, we have twenty cyclists randomly selected. Half of them received the truth supplement for four weeks, all the rest received a powdered with similar properties but not physical effects. It means: Half of the cyclist received a "placebo", that seems to be "real" medicine, nevertheless the "placebo" medicine will not show effects on health by its self.

Due to the above, we can conclude that this study utilized a placebo for half of the group. 

8 0
4 years ago
4.54 Saturated liquid nitrogen at 600 kPa enters a boiler at a rate of 0.008 kg/s and exits as saturated vapor (see Fig. P4.54).
solmaris [256]

Answer:

hello the figure attached to your question is missing attached below is the missing diagram

answer :

i) 1.347 kW

ii) 1.6192 kW

Explanation:

Attached below is the detailed solution to the problem above

First step : Calculate for Enthalpy

h1 - hf = -3909.9 kJ/kg ( For saturated liquid nitrogen at 600 kPa )

h2- hg = -222.5 kJ/kg ( For saturated vapor nitrogen at 600 kPa )

second step : Calculate the rate of heat transfer in boiler

Q1-2 = m( h2 - h1 )  = 0.008( -222.5 -(-390.9) = 1.347 kW

step 3 : find the enthalpy of superheated Nitrogen at 600 Kpa and 280 K

from the super heated Nitrogen table

h3 = -20.1 kJ/kg

step 4 : calculate the rate of heat transfer in the super heater

Q2-3 = m ( h3 - h2 )

        = 0.008 ( -20.1 -(-222.5 ) = 1.6192 kW

6 0
3 years ago
Explain three (3) modes of heat transfer in air conditioning system.
LenKa [72]

Answer:

1. Conduction

2. Convection

3. Radiation

Explanation:

The 3 modes of heat transfer i an air conditioning system:

1. Conduction:

The transfer of heat by conduction  takes place in solid and is when the conduction takes place as a result of direct contact in between the interacting material which transfer the heat energy from particle to particle thus conducting the heat through out the system.

2. Convection:

The other mode for the transfer of heat which takes place especially in fluids - gases and liquids is through the technique of convection in which the transfer of heat takes place by the circular motion of the atoms and molecules of the fluid which carries the heat energy and results in the distribution of the heated fluid in the entire system thus transferring all the heat energy in the entire system.

3. Radiation:

The third mode of heat transfer in the air conditioning system is through radiation. This method transfers the heat by making use of the electro-magnetic radiation in the infra red spectrum where the waves of the spectrum transfers the heat energy with the help of a medium or without any medium at all.

Thus making the radiation method of heat transfer as the only method out of the three methods which does not require the material medium for the transfer of heat energy.

4 0
3 years ago
A data bus can be visualized as a multilane highway
iris [78.8K]

Answer:

B. with each component having an individual address

Explanation:

Data bus is a system within a computer or device, consisting of a connector or set of wires, that provides transportation for data. Data bus needs an address unique to each component in order to deliver the right data to the right place. Every memory location has a unique binary address. A microprocessor architecture is mainly composed of two main buses: The data bus and the address bus.

3 0
3 years ago
You are preparing to work with Chemical A. You open the appropriate storage cabinet, and notice Chemical B, as well as Chemical
PtichkaEL [24]

The correct answer is; Stability and reactivity.

Further Explanation:

The stability and reactivity section of the SDS sheets is where to check for the possibility of hazardous reactions for the chemicals. This also lists the chemical stability of each chemical that people may be using. This can be found in section 10 of the OSHA Quick Card.

The SDS sheets has 16 sections for employees to use. Since 2015, the sections can be found in uniform format for easier and faster ways to find the section needed. The 16 sections for the SDS sheets are:

  1. Identification
  2. Hazard(s) identification
  3. Composition/information on ingredients
  4. First-aid measures
  5. First-aid measures
  6. First-aid measures
  7. Handling and storage
  8. Exposure controls/personal protection
  9. Physical and chemical properties
  10. Stability and reactivity
  11. Toxicological information
  12. Ecological information
  13. Disposal considerations
  14. Transport information
  15. Regulatory information
  16. Other information

Learn more about SDS sheets at brainly.com/question/9753408

#LearnwithBrainly

5 0
4 years ago
Other questions:
  • A metal rod, 20 mm diameter, is tested in tension (force applied axially). The total extension over a length of 80 mm is 3.04 x
    8·1 answer
  • 6. What are the potential consequences if a business does not follow regulations? (1 point)
    13·1 answer
  • The news media often report an earthquake's magnitude on the Richter scale. Which of the following items are characteristics of
    14·1 answer
  • Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards
    12·1 answer
  • When mass is the same, what is the relationship between radius and compression strength?
    5·1 answer
  • Label each of the line types in the drawing below. ( will not mark you brainlest or whatever if you don't at least try to help)
    11·1 answer
  • Simplify the expression below:<br><br> 313 + 12 =
    13·2 answers
  • Are you?
    7·2 answers
  • How long does it take to freeze a 100 mm diameter sphere of pure Aluminum in a plaster mold assuming: a. No superheat and neglec
    15·1 answer
  • How many watts are consumed in a circuit having a power factor of 0. 2 if the input is 100 vac at 4 amperes?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!