subject

Instructions In this example, you use an array called scores, and we pass the array to a function called printScores(). This function loops through the array elements, and prints them. As before, the program prints the average of the grades. Here is the code: 04 UP APP 1 #include 3 5_ 6 void printScores (float scores (1) int main() { char s_name[] - "ECPI University"; float scores[6] - 78.7, 98.4, 120.2, 95.5, 180., 88.8}; float average - e. es int counter; printScores (scores); for(counter - counter < 6j counter++) { average -- scores[ counter); average /= float(6); printf("\nAt %s, your class average is %.16.", S_name, average) return ; 24 void printScores (float scores[]) int counter 28 printf("Here are your scores:\n\n"); for(counter - e; counter < 6; counter++) { printf("%.1f\n", scores[ counter]); return; And here is the output: R: CIS126\CIS126 November 2018 Development Unit 4\Unit 4 Guided Practice 2.exe Here are your scores: 78.7 98.4 100.0 196.5 100.0 88.8 At ECPI University, your class average is 93.7. - Process exited after 0.1714 seconds with return value 47 Press any key to continue... Submission Instructions Now, you enter the code, and run it. (No flowchart this time) Upload your. c file and a screenshot of your code output saved in a Word document including the path name directory at the top of the screen into the dropbox for grading. Note - Do Not Copy and paste the output as seen in the directions of this exercise. This considered plagiarizing.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
You know the right answer?
Instructions In this example, you use an array called scores, and we pass the array to a function ca...
Questions
question
Mathematics, 19.12.2020 03:10
question
Mathematics, 19.12.2020 03:10
question
Mathematics, 19.12.2020 03:10
question
Physics, 19.12.2020 03:10
question
Mathematics, 19.12.2020 03:10
question
Biology, 19.12.2020 03:10
question
English, 19.12.2020 03:10
question
World Languages, 19.12.2020 03:10
Questions on the website: 13722363