![Lydiac8715](/avatars/5662.jpg)
Lydiac8715
11.02.2020 •
Engineering
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.
Solved
Show answers
More tips
- C Cities and Countries Which Country has the Most Expensive Visa?...
- G Goods and services Don t Let Your Fridge Smell Bother You: How to Get Rid of Unpleasant Odors in Your Refrigerator...
- F Family and Home What does a newborn need?...
- F Food and Cooking How to Make Cottage Cheese Casserole? A Proven Recipe...
- H Health and Medicine How to Improve Eyesight: Science-based Techniques to Enhance Your Visual Acuity...
- A Auto and Moto What to expect from the new VW Golf 7?...
- F Food and Cooking Learn How to Make Ice Cream at Home - Step by Step Guide...
- F Food and Cooking Discover the most delicious spaghetti with these tips...
- F Food and Cooking Why Chicken Liver Pops and How It Can Affect Your Health?...
- F Food and Cooking How to Choose the Right Olive Oil: A Comprehensive Guide...
Answers on questions: Engineering
- E Engineering Idont undertand this coding problem (java): enter item name that blackbeard needs? sea biscuitwhat is the price of one sea biscuit? 1.12enter quantity of sea biscuits:...
- E Engineering Aspring-mass system is subjected to a step force of magnitude 2m, where m is the mass of the vibrating system. determine the maximum acceleration response of the...
- M Mathematics #5-10: Identify which line from the graph the following right triangles could lie on. 5. 120 6. 10 7. 24 10 LINĘ A 90 30 18 9 LINER 8 7 Ü Ü Ï Ï Ï 6 LINE C 5 8....
- P Physics \Why is it important that the Constitution meet your goals?...
- E English THE QUESTIONS ARE BASED OFF OF MISS BILL BY KATHERINE MANSFIELD GIVING 20 POINTS TO WHO ANSWERS Which excerpt from the passage best shows that Miss Brill takes...
- E English How does the author most likely want his readers to feel? DONE...
- E English In Growing Up Asian in America, how does the author s use of the term Japanese-American change over the course of the text? (Hint: think about Structure from your...
- M Mathematics If a = 4 and c = 2 then what is 5ac...
- M Mathematics Exercice 6 Soit (O, I, J un repère orthonormée du plan. On considère les points A(2; 2), B(7; 1), C(4; 4) 1. Faire une figure dans le repère ci-dessous, qui sera...
- H Health Why is the home visit crucial in the following scenario? You are helping with a patient discharge and the doctor s orders include exercising 30 minutes a day. You...
Ответ:
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 <<
Ответ:
1.24
Step-by-step explanation: