Identify and fix errors in the following code:

```
#include
using namespace std;

int main()
{
for (int i = 0; i < 10; i++);
{
if (j > i) then
j++
else
j--;
}
}
```


```
#include
using namespace std;

int main()
{
for (int i = 0; i < 10; i++);
{
if (j > i) then // j undefined, then is wrong
j++ // missing ;
else
j--;
}
}
```

Computer Science & Information Technology

You might also like to view...

The ____ step is the most difficult of the problem-solving steps, and it requires a lot of time, patience, and effort.

A. planning B. desk-check C. analysis D. testing

Computer Science & Information Technology

A(n) ________ is an interface used to enter or modify data in a field or record

Fill in the blank(s) with correct word

Computer Science & Information Technology

Critical Thinking QuestionsCase1-1Sara is the owner of a specialty goods store. To keep a record of the goods that she has in stock and their prices, she has created a very large worksheet. She is not the best speller in the world, however, so she would like to use the spell checker to ensure that her worksheet does not have any spelling mistakes. Sara is not familiar with this feature of Excel and has asked you for help. After you have helped Sara fix the spelling mistakes in the workbook, she wants to send it to a business colleague. To send it as an email message attachment, you tell her to open it, click the FILE tab, and then click ____ on the navigation bar. a.Sharec.Sendb.Attachd.Distribute

What will be an ideal response?

Computer Science & Information Technology

An application can be a __________. (Choose all that apply.)

text editor word processor text document game

Computer Science & Information Technology