Write a C++ code fragment that is assumed to be embedded in an otherwise complete and correct program. You are to assume the user has been prompted (so you don’t have to) for (exactly) 20 values of type int to be read from the keyboard, You are to use this input to fill an array. Do not write a full program, just the code fragment to do this. Do give declarations of the array and any variables you use.

What will be an ideal response?


```
int i, a[20];
for(i=0; <<20; I++)
cin >>; a[i];
```

Computer Science & Information Technology

You might also like to view...

In a binary search, _______________________________ .

a) it is assumed that all of the elements are integers. b) it is assumed that all of the elements are Strings. c) it is assumed that the search pool is small. d) it is assumed that the search pool is ordered. e) it is assumed that the search pool is large.

Computer Science & Information Technology

Create a new movie like the makeSunsetMovie method that turns the beach black after the blue and green is reduced by a passed amount.

What will be an ideal response?

Computer Science & Information Technology

Which Windows feature allows you to change, configure, monitor, or troubleshoot most system settings, hardware, and software?

a.Application programming interface (API) b.Control Panel c.Settings charm d.System Preferences

Computer Science & Information Technology

?A _____ shows the visual layout of a webpage to indicate where elements should appear.

A. ?site map B. ?site index C. ?wireframe D. ?data architecture

Computer Science & Information Technology