CIS170C Course Discussions Week 5

$5.00

CIS170C Course Discussions Week 5
post at least three notes that highlight the key programming techniques…

SKU: CIS170C Use of Arrays Categories: , Tags: , , ,

Description

CIS170C Course Discussions Week 5

CIS170C Course Discussions Week 5

All Students Posts – 19 Pages 

Let’s start with the basics: What is an array? What is it useful for? How do you describe the various parts of an array? What are some C++ examples of defining an array?

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.

#include <iostream>

using namespace std;

int main(void)
{
int myarray[10];

for (int index1=0; index1 < 10; index1++)
{
myarray[index1]= index1 + 10;
}
for (int index2=0; index2 < 10; index2++)
{
cout << “myarray[” << index2 << “]= ” << index2 << endl;
}
return 0;…

Lab Forum – 15 Pages 

This discussion is used to discuss the programming labs and techniques. Post any programming questions or hints and tips on this week’s programming lab. At a minimum, post at least three notes that highlight the key programming techniques, problems you had with this week’s lab, or help to other students. In working with your week 5 lab how can an array be incorporated?  What is the syntax for using an array in C++?