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
Expalin the application of diesel cycle in detail.
mars1129 [50]

Explanation:

Diesel cycle:

        All diesel engine work on diesel cycle .In diesel cycle there are four process .These processes are as follows

1. Adiabatic reversible compression

2.Heat addition at constant pressure

3.Adiabatic reversible expansion

4.Constant volume heat rejection

In general compression ratio in diesel engine is high as compare to petrol engine.But the efficiency of diesel cycle is less as compare to petrol cycle for same compression ratio.

Applications of diesel cycle:

Generally diesel cycle used for heavy vehicle or equipment because heavy vehicle or equipment is required high initial torque.So this cycle have lots of applications such as in industrial machining,in trucks,power plant,in mining ,in defense or military,large motors ,compressor and pump etc.

   

5 0
3 years ago
Casein, a dairy product used in making cheese, contains 25% moisture when wet. A dairy sells this product for $40/100 kg. If req
Nataly_w [17]

Based on the percent moisture content of the dried product, the mass of dried casein produced os 852.3 kg.

<h3>What is the mass of casein in wet casein?</h3>

The mass of casein in 1000 Kg of wet casein is 75% 1000 kg = 750 Kg

Mass of water 250 kg

The mass of casein is constant while the moisture content can be changed.

At 12% moisture content;

750 kg = 88%%

100 % = 100 ×750/88 = 852.27 kg

Therefore, the mass of dried casein produced os 852.3 kg.

Learn more about mass at: brainly.com/question/24658038

#SPJ1

3 0
2 years ago
Bending is defined as? A. the application of a load tending to distort a member in one direction. B. the application of opposing
amm1812
Hi how are you today
4 0
2 years ago
An insulated piston-cylinder device contains 0.15 of saturated refrigerant-134a vapor at 0.8 MPa pressure. The refrigerant is no
Stells [14]

Answer:

Assumption:

1. The kinetic and potential energy changes are negligible

2. The cylinder is well insulated and thus heat transfer is negligible.

3. The thermal energy stored in the cylinder itself is negligible.

4. The process is stated to be reversible

Analysis:

a. This is reversible adiabatic(i.e isentropic) process and thus s_{1} =s_{2}

From the refrigerant table A11-A13

P_{1} =0.8MPa   \left \{ {{ {{v_{1}=v_{g}  @0.8MPa =0.025645 m^{3/}/kg } } \atop { {{u_{1}=u_{g}  @0.8MPa =246.82 kJ/kg } -   also  {{s_{1}=s_{g}  @0.8MPa =0.91853 kJ/kgK } } \right.

sat vapor

m=\frac{V}{v_{1} } =\frac{0.15}{0.025645} =5.8491 kg\\and \\\\P_{2} =0.2MPa  \left \{ {{x_{2} =\frac{s_{2} -s_{f} }{s_{fg }}=\frac{0.91853-0.15449}{0.78339}   = 0.9753 \atop {u_{2} =u_{f} +x_{2} }(u_{fg}) =  38.26+0.9753(186.25)= 38.26+181.65 =219.9kJ/kg \right. \\s_{1} = s_{2}

T_{2} =T_{sat @ 0.2MPa} = -10.09^{o}  C

b.) We take the content of the cylinder as the sysytem.

This is a closed system since no mass leaves or enters.

Hence, the energy balance for adiabatic closed system can be expressed as:

E_{in} - E_{out}  =ΔE

w_{b, out}  =ΔU

w_{b, out} =m([tex]u_{1} -u_{2)

w_{b, out}  = workdone during the isentropic process

=5.8491(246.82-219.9)

=5.8491(26.91)

=157.3993

=157.4kJ

4 0
3 years ago
Question 74
torisob [31]

Answer:

C). rearview mirror (at least of four inches by four inches).

Explanation:

<u>A 'rearview mirror' would be needed in case one is required to pull an individual on water skis after a PWC(personal watercraft) that is rated for carrying two persons only</u>. This wide-angle mirror for rearview would allow the operator to monitor the person who is being towed constantly along with riding the ski at the same time. It is considered illegal to tow a person on a vessel without having a rearview mirror and at the same time, the limited capacity must also be followed strictly. Hence, <u>option C</u> is the correct answer.

7 0
3 years ago
Other questions:
  • How I do I get nut out of sheets​
    8·2 answers
  • What is a thermal reservoir?
    15·1 answer
  • What are 3 reasons why small businesses are an important part of the American economy?
    9·2 answers
  • A tank with a volume of 8 m3 containing 4 m3 of 20% (by volume) NaOH solution is to be purged by adding pure water at a rate of
    8·1 answer
  • A saturated 1.5 ft3 clay sample has a natural water content of 25%, shrinkage limit (SL) of 12% and a specific gravity (GS) of 2
    11·1 answer
  • Ayuda con este problema de empuje y principio de arquimedes.
    6·1 answer
  • Select the correct answer.
    6·1 answer
  • Which of the following activities could be considered unethical?
    7·1 answer
  • A proposed embankment fill requires 7100 ft of compacted soil. The void ratio of the compacted fill is specified as 0.5. Four bo
    10·1 answer
  • According to mcclelland human motivation theory, individuals primarily motivated by achievement performance to work in teams
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!