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
Please help I need it by today!!!
AfilCa [17]

Answer:

if engineering disappeared for a day i would be at a loss. i wouldnt know what to do with myself considering engineering is my life. one way that engineers improve my life is they help me to understand enything end everything

Explanation:

7 0
2 years ago
At a festival, spherical balloons with a radius of 140.cm are to be inflated with hot air and released. The air at the festival
Tpy6a [65]

Answer:

find attached

Explanation:

5 0
3 years ago
Holmes owns two suits: one black and one tweed. He always wears either a tweed suit or sandals. Whenever he wears his tweed suit
vazorg [7]

Answer:

He wore his black suit, another color of shirt (not purple) and shoes

Explanation:

Holmes owns two suits: one black and one tweed.

Whenever he wears his tweed suit and a purple shirt, he chooses not to wear a tie and whenever he wears sandals, he always wears a purple shirt.

So, if he wore a bow tie yesterday, it means he wore his black suit, another color of shirt (not purple) and shoes because the shirt color is not purple

4 0
3 years ago
What are the inputs and outputs of a sailboat?
bearhunter [10]

Answer:

  • sailing ships were the primary means of maritime trade and transportation; exploration across the seas and oceans was reliant on sail for anything other than the shortest distances. Naval power in this period used sail to varying degrees depending on the current technology, culminating in the gun-armed sailing warships of the Age of Sail.
7 0
1 year ago
Sharon is designing a house in an area that receives a lot of rainfall all year. Which material should she use to stick the wood
kakasveta [241]

Explanation:

She is passionate about architecture, typography, and black & white film ... Since moving to Texas, I've heard a lot of people say, "If you don't like ... Oc, 3.74, 56, 80 ... Not only does the weather have to be clear to pour the concrete, but it ... system that goes within the slab) is complete, any additional rain will

4 0
3 years ago
Other questions:
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • What is centrifugal force with respect to unbalance? What is the formula used to determine centrifugal force?
    12·1 answer
  • Solve the compound inequality. 3x − 4 &gt; 5 or 1 − 2x ≥ 7
    8·1 answer
  • A coin placed 30.8 cm from the center of a rotating, horizontal turntable slips when its speed is 50.8 cm/s.
    12·1 answer
  • Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subp
    8·1 answer
  • How can goal setting help with academic performance?
    13·1 answer
  • Significant figures are an indicator of accuracy. a) True b) False
    8·1 answer
  • using the following data for july, calculate the cost of goods manufactured: beginning finished goods inventory 150,475. Ending
    5·1 answer
  • An aluminum bar 125 mm long with a square cross section 16 mm on an edge is pulled in tension with a load of 66,700 N and experi
    14·1 answer
  • Evaluate, please show work as I don't understand. thanks
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!