Answer:
1. ‘cout’ was not declared in this scope.
2. ‘cin’ was not declared in this scope.
3. lvalue required as left operand of assignment.
Explanation:
The code gives the error cout and cin was not declare. This error means, we not include the library where they define.
cout and cin is the input/output instruction and they include in the library iostream file.
the last error is lvalue required as left operand of assignment.
lvalue means the assignable value, we actually do the wrong assignment.
number1 + number2 = sum;
here, sum is is the assignment variable. so, it must be in the right side of the '=' operator.
sum = number1 + number2 ;
Now, the above is correct. the value number1 plus number2 is assign to sum.
Answer:
It is method where the product is designed, implemented and tested incrementally until the product is finished.
Explanation:
Small incremental codes are used to find the errors or bugs in the program coding or in the development of software. The whole process of incremental codes in software testing is categorized in smaller chunks, and the process is executed in steps of design, requirement, and implementation. If an error occurs in each step of the testing phase, it will be detected. This process is economical and easy to use due to smaller chunks.
Make the zig zag part more spaced out
Answer:
See Explanation
Explanation:
The question has been answered; however, the program is not dynamic enough because the output will always be 26.
To make it dynamic, replace the following lines of code:
<em>numDrinks = 4;
</em>
<em>numTacos = 6;
</em>
<em />
with:
<em>cout<<"Number of drinks: ";</em>
<em>cin>>numDrinks;</em>
<em>cout<<"Number of Tacos: ";</em>
<em>cin>>numTacos;</em>
<em />
The above lines of code will let the user input different values for numDrinks and numTacos each time the program is executed.