subject

An one dimensional array is a list. A list of variables. All those variables have the same name, but they are differentiated by their subscript, or index. In the problem below, for example, there is an array called "scores." It contains six elements. Each element has a subscript. The values are as follows:scores[0] = 100.00scores[1] = 100.00scores[2] = 76.00scores[3] = 97.00scores[4] = 72.00scores[5] = 86.7Notice the subscripts are "zero based," that is, the first one is subscript zero, and so on. If you use these in a program to store grades, we can also use a character array to store the string "ECPI University." This program uses a "for" loop to loop through the array elements, and calculate the average grade.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Consider the following statements: #include #include class temporary { private: string description; double first; double second; public: temporary(string = "", double = 0.0, double = 0.0); void set(string, double, double); double manipulate(); void get(string& , double& , double& ); void setdescription(string); void setfirst(double); void setsecond(double); }; write the definition of the member function set() so that the instance variables are set according to the parameters. write the definition of the constructor so that it initializes the instance variables using the function set() write the definition of the member function manipulate() that returns a decimal number (double) as follows: if the value of description is "rectangle", it returns first * second if the value of description is "circle" it returns the area of a circle with radius first if the value of description is "cylinder" it returns the volume of a cylinder with radius first and height second. hint: the volume of a cylinder is simply the area of the circle at the base times the height. if the value of description is "sphere" it returns the volume of the sphere with radius first. otherwise it returns -1.0;
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
You know the right answer?
An one dimensional array is a list. A list of variables. All those variables have the same name, but...
Questions
question
Computers and Technology, 26.07.2019 23:00
Questions on the website: 13722367