Answer:
int sum = 0;
for (int i = 1; i < 100; i += 2) {
sum += i * i;
}
printf("The sum of cubes is %d", sum);
/* Prints: The sum of cubes is 166650 */
Explanation:
If 1 should be excluded, let the for loop start at 3.
Answer:
Yes, the purpose of a database in a way is to stop people from using spreadsheets but, it is also so much more.
Explanation:
<u>Databases</u> are a vastly improved form of a spreadsheet. They allow Computer Scientists to automatize a company's information. Giving them the ability to instantly add, retrieve, and modify specific information within a database of hundreds or even thousands of entries. All this with little or no human input. Thus saving a company time and money as opposed to using a regular spreadsheet which requires manual input from an employee.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
The correct way to pass an array named student Scores that holds 25 values to a function is Set average = getAverage(studentScores, 25).
<h3>What is array?</h3>
An array is known to be a set of same kind of data types. An example an int array is known to holds the elements of int kinds and a float array is said to keep the elements that are of the float kinds.
Note that The correct way to pass an array named student Scores that holds 25 values to a function is Set average = getAverage(studentScores, 25) as it is the only right way
Learn more about array from
brainly.com/question/24275089
Answer:
Following are the program in Python programming language
def pyramid_volume(base_length,base_width,pyramid_height):
base_area=base_length*base_width
volume=base_area*pyramid_height*(1/3)
return volume
print('volume for 4.5,2.1,3.0 is:',pyramid_volume(4.5,2.1,3.0))
Explanation:
Here, we define a function "pyramid_volume()" and pass an arguments "base_length,base_width,pyramid_height"
inside that program we have calculated the area of the pyramid and after that we have calculated the volume of that pyramid and return the volume.
Outside of the function we have called the function by passing the arguments.