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
The cars of a roller-coaster ride have a speed of 19.0 km/h as they pass over the top of the circular track. Neglect any frictio
Dmitrij [34]

Complete Question

The cars of a roller-coaster ride have a speed of 19.0 km/h as they pass over the top of the circular track. Neglect any friction and calculate their speed v when they reach the horizontal bottom position. At the top position, the radius of the circular path of their mass centers is 21 m, and all six cars have the same mass.V = -18 m What is v?X km/h

Answer:

v=23.6m/s

Explanation:

Velocity v_c=18.0km/h

Radius r=21m

initial velocity uu=19=>5.27778

Generally the equation for Angle is mathematically given by

\theta=\frac{v_c}{2r}

\theta=\frac{18}{2*21}

\theta=0.45

\theta=25.7831 \textdegree

Generally

Height of mass

h=\frac{rsin\theta}{\theta}

h=\frac{21sin25.78}{0.45}

h=20.3m

Generally the equation for Work Energy is mathematically given by

0.5mv_0^2+mgh=0.5mv^2

Therefore

v=\sqrt{u^2+2gh}

v=\sqrt{=5.27778^2+2*9.81*20.3}

v=23.6m/s

3 0
3 years ago
5. Will rotating the tires extend their life?<br><br> O Yes<br> O No
ZanzabumX [31]
Answer is yes.
Tire rotation is undertaken to ensure that the tires wear evenly. This can extend tire life and save you money.
For example, failure to rotate tires on a front-wheel-drive vehicle will eventually result in the front tires having significantly less tread than the rear tires.
5 0
3 years ago
Read 2 more answers
In this problem set, you will implement multidimensional scaling (MDS) from scratch. You may use standard matrix/vector librarie
EleoNora [17]

Features of Multidimensional scaling(MDS) from scratch is described below.

Explanation:

Multidimensional scaling (MDS) is a way to reduce the dimensionality of data to visualize it.  We basically want to project our (likely highly dimensional) data into a lower dimensional space and preserve the distances between points.  

If we have some highly complex data that we project into some lower N dimensions, we will assign each point from our data a coordinate in this lower dimensional space, and the idea is that these N dimensional coordinates are ordered based on their ability to capture variance in the data.  Since we can only visualize things in 2D, this is why it is common to assess your MDS based on plotting the first and second dimension of the output.  

If you look at the output of an MDS algorithm, which will be points in 2D or 3D space, the distances represent similarity. So very close points = very similar, and points farther away from one another = less similar.

Working of MDS

The input to the MDS algorithm is our proximity matrix.  There are  two kinds of classical MDS that we could use:  Classical (metric) MDS is for data that has metric properties, like actual distances from a map or calculated from a vector .Nonmetric MDS is for more ordinal data (such as human-provided similarity ratings) for which we can say a 1 is more similar than a 2, but there is no defined (metric) distance between the values of 1 and 2.

Uses

Multidimensional scaling (MDS) is a means of visualizing the level of similarity of individual cases of a dataset. MDS is used to translate "information about the pairwise 'distances' among a set of n objects or individuals" into a configuration of n points mapped into an abstract Cartesian space.

8 0
3 years ago
ME<br> And what you know about love
antoniya [11.8K]

Answer:

Everything I got what you need

7 0
3 years ago
Refrigerant 134a is the working fluid in a vaporcompression heat pump that provides 35 kW to heat a dwelling on a day when the o
Dennis_Churaev [7]

Answer:

Hello, dear.

For the answer please see the explanation below.

Explanation:

The compressor power is:

2.212kW

(b) The refrigeration capacity is:

3.62 tons

(c) The coefficient of performance is:

5.75

5 0
3 years ago
Other questions:
  • Line(s) indicates passing is allowed if there are no oncoming cars.
    12·1 answer
  • What are supercapacitors ?
    13·2 answers
  • Which bulb has the lowest total cost of operation? (a) Incandescent (b) Fluorescent (c) LED
    8·1 answer
  • Info security:
    8·1 answer
  • Two piezometers have been placed along the direction of flow in a confined aquifer that is 30.0 m thick. The piezometers are 280
    6·1 answer
  • What is a microwave transmitter?a) A technology that uses active or passive tags in the form of chips or smart labels that can s
    7·2 answers
  • PLLLLLEEESSSEEE IIII NEED ASAP
    12·2 answers
  • An engine has a piston with a surface area of 17.31 in2 and can travel 3.44 inches. What is the potential change in volume, disp
    10·1 answer
  • Dear sir i want to ask something about the solution of my question?
    9·1 answer
  • Most equipment is cooled by bringing cold air in the front and ducting the heat out of the back. What is the term for where the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!