Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need someone to help me work on my final project below, thank you Final Projec

ID: 3867133 • Letter: I

Question

I need someone to help me work on my final project below, thank you

Final Project:

Create a program of your choice.  A business-style program, or it may be something important only to you, such as keeping track of a league’s standings, tournaments, runner’s log, a kid’s learning program, a program you can use at work to advance your personal, professional, promote-ability or department’s productivity.  Make it something meaningful and useful to you; whatever that means to you.  Your program is not only measured by how well you programmed and documented it but if it looks and feels like a 2 week final

Restrictions

2.        You may research other texts or the internet for program ideas; however, the use of any other’s code must be using a topic within the range of our current courses chapter topics, and you absolutely, positively, without any doubt must give proper credit to the source.

3.        If on the internet, you must also provide the URL (address) where you found the source.

4.        You must do your own coding and/or coordination.

5.        Be careful not to give me anything personal, confidential or company proprietary, legal, medical, obscene, etc.

Minimum Requirements

1.        You must provide a Word-style document explaining what your program does showing the expected runtime output.  Please advise me as to anything else that’s of importance to running it.  All must work, so test your program before sending it to me.  Send it to yourself, download and see if it runs.

2.        Your name must be commented at the beginning of every document or file you use or access.

Explanation / Answer

Given an array of integers, find sum of its elements.

Examples :

Input : arr[] = {1, 2, 3}
Output : 6
1 + 2 + 3 = 6

Input : arr[] = {15, 12, 13, 10}
Output : 50

/* C Program to find sum of elements in a given array */
#include <stdio.h>

// C program to return sum of elements in an array of size n
int sum(int arr[], int n)
{
int sum = 0; // initialize sum
int i;

// Iterate through all elements and add them to sum
for (i = 0; i < n; i++)
sum += arr[i];

return sum;
}

int main()
{
int arr[] = {12,3,4,15};
int n = sizeof(arr)/sizeof(arr[0]);
printf("Sum of given array is %d", sum(arr, n));
return 0;
}


Output:
Sum of given array is 34

Running time complexity is O(n)