Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 10:00, wwwcarolynzouowficz
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
image
Computers and Technology, 24.06.2019 10:00, noahmace
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
image
Computers and Technology, 24.06.2019 23:30, clairajogriggsk
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
Do you know the correct answer?
Instructions In this example, you use an array called scores, and we pass the array to a function ca...

Questions in other subjects:

Konu
Mathematics, 16.03.2022 18:50
Konu
Mathematics, 16.03.2022 19:00
Konu
Mathematics, 16.03.2022 19:00