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
Visual perception is a mental process that is non selective<br> True<br> False
NARA [144]

The statement "Visual perception is a mental process that is non selective" is false, it is a psychic function that allows the organism to capture, elaborate and interpret selective information that comes from the environment.

<h2>What is visual perception?</h2>

Visual perception is that inner sensation of apparent knowledge, resulting from a specific stimulus or light impression recorded by the eyes.

<h3>Characteristics of visual perception</h3>

  • It incorporates the sensory stimuli received from objects, situations or events and converts them into a meaningful interpretation experience.

  • It is an active process of the brain through which an external reality is created by transforming the light information captured by the eye.

Therefore, we can conclude that visual perception is the interpretation made by the brain of the different organisms of the stimuli received through the senses.

Learn more about visual perception here: brainly.com/question/10259599

3 0
3 years ago
Whose job is it to ensure that a group stays focused and on schedule?
Sedbober [7]

Answer:

the leader or organizer. you should have assigned jobs, so one of them should be in charge. if you did not assign jobs, assign them now, and one person has a job, and they must be held accountable. if they cannot do their job, someone might have to take over, but then you tell your prof. that they could not do their part, so hopefully you will get the credit you deserve and they will not.

Explanation:

3 0
3 years ago
Read 2 more answers
The mechanical properties of a metal may be improved by incorporating fine particles of its oxide. Given that the moduli of elas
mojhsa [17]

Answer:

A) Upper bound modulus of elasticity; E = 165.6 GPa

B) Lower bound modulus of elasticity; E = 83.09 GPa

Explanation:

A) Formula for upper bound modulus is given as;

E = E_m(1 - V_f) + E_f•V_f

We are given;

E_m = 60 GPa

E_f = 380 GPa

V_f = 33% = 0.33

Thus,

E = 60(1 - 0.33) + 380(0.33)

E = (60 x 0.67) + 125.4

E = 165.6 GPa

B) Formula for lower bound modulus is given as;

E = 1/[(V_f/E_f) + ((1 – V_f)/E_m)]

E = 1/[(0.33/380) + ((1 – 0.33)/60)]

E = 1/(0.0008684 + 0.01116667)

E = 1/0.01203507

E = 83.09 GPa

3 0
3 years ago
Troy must keep track of the amount of refrigerant he uses from a 50-pound cylinder to ensure that accurate
IgorLugansk [536]

Answer:

Amount of gas still in cylinder = 28 pound

Explanation:

Given:

Amount of gas in cylinder = 50 pound

Amount of gas used in Ms. Jones system = 13 pound

Amount of gas used in client system = 9 pound

Find:

Amount of gas still in cylinder

Computation:

Amount of gas still in cylinder = Amount of gas in cylinder - Amount of gas used in Ms. Jones system - Amount of gas used in client system

Amount of gas still in cylinder = 50 - 13 - 9

Amount of gas still in cylinder = 28 pound

7 0
3 years ago
What scale model proves the initial concept?
Tju [1.3M]

Answer: A prototype

Explanation:

5 0
3 years ago
Other questions:
  • 1. Consider a city of 10 square kilometers. A macro cellular system design divides the city up into square cells of 1 square kil
    10·1 answer
  • A corroded metal gusset plate was found on a bridge. It was estimated that the original area of the plate was 750 cm2 and that a
    11·1 answer
  • Answer every question of this quiz
    7·1 answer
  • Using phasors, the value of 37 sin 50t + 30 cos(50t – 45°) is _________ cos(50t+(_____°)). Please report your answer so the magn
    5·1 answer
  • What is an air mass?​
    5·2 answers
  • Which of the following is not necessary a reason to machine a brake drum?
    8·1 answer
  • I have a Dutch oven that looks like this what do I do?
    10·1 answer
  • Plz help electrical technology
    15·2 answers
  • 50.38
    6·1 answer
  • Can I get an answer to this question please
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!