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
iragen [17]
4 years ago
5

Each of the following programs has errors. Find as many as you can. 65. // Find the error in this program. #include using namesp

ace std; int main() { int num1 = 0, num2 = 10, result; num1++; result = ++(num1 + num2); cout << num1 << " " << num2 << " " << result; return 0; }
Computers and Technology
1 answer:
Serggg [28]4 years ago
7 0

Answer:

There are two error in this program--

  1. In header file inclusion, file is not defined.
  2. In the statement "result = ++(num1 + num2);" , bracket is fixed after the increment operator.

Explanation:

  • For the first error, the user needs to add the file because "#include" is used to add the library for the program which states about the function and symbols used in the program.
  • The second error is because there must be a variable with the increment operator ( increment operator is being used to increase the value of a variable by 1), but there is a small brace fix in between the operator and operands.
You might be interested in
Assume you have created a program that has the user enter an email address of the form: <a href="/cdn-cgi/l/email-protection" cl
Kay [80]

Answer:

Four types of errors program should test for user input are given in explanation

Explanation:

1. Program should test that extension contains exactly three letters

2. Program should test that extension doesn't contain any number or special character

3. Program should test that extension doesn't contain any white space  

4. Program should test that extension doesn't contain any punctuation mark

6 0
4 years ago
Hi Guys,
Bingel [31]

Answer:

Please check the attachment.

Explanation:

Please check the attachment.

Download docx
8 0
4 years ago
Identify the characteristics of syntax errors. Choose all that apply.
kodGreya [7K]

Answer:

Explanation:

Identify the characteristics of syntax errors. Choose all that apply.

programmer did not follow the program language conventions

may be highlighted while writing the program

can be caused by mistyping or misspelling while writing the program

8 0
3 years ago
Read 2 more answers
How are computers classified into different types? Explain ​
zloy xaker [14]

Answer:

On the basis of size there are four types of computer. They are minicomputer, micro computer, mainframe computer and super computer. Super computer is the fastest, most expensive, big in size, and most powerful computer that can perform multiple tasks within no second.

3 0
2 years ago
Who wants to play kahoot.it and the pin is 7385096
nadezda [96]

meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

3 0
3 years ago
Read 2 more answers
Other questions:
  • 2.Write an if /else if statement that carries out the following logic. If the value of variable quantityOnHand is equal to 0, di
    8·1 answer
  • In dt.py, you will implement a basic decision tree classifier for
    5·1 answer
  • 1. In Microsoft Word you can access the _______ command from the "Mini toolbar." A. underline B. insert citation C. save as D. w
    9·2 answers
  • How can you best protect yoursel and when using social media
    14·2 answers
  • The CPU (central processing unit), also known as a processor, is considered the brain of the computer. What is the CPU’s functio
    6·1 answer
  • What does a computer do with what it receives from the interpreter?
    14·1 answer
  • What gaming PC should I get
    14·2 answers
  • True or false. The CPU requires it's own power from the power supply, and can't receive power from the motherboard.
    9·1 answer
  • Based on the information in the table, which of the following tasks is likely to take the longest amount of time when scaled up
    14·1 answer
  • Which join is made with the following query?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!