Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++program for the following question. Parts are reversed, so start from part c to part a. Thank you CSI 205- Computer Programming I

Write a C++program for the following question. Parts are reversed, so start from part c to part a. Thank you

image text in transcribed

CSI 205- Computer Programming I 1. A football team plays a football game almost every month. It stores the number of goals scored per month in an array of size 12. The number of goals scored on January is stored in the first etement of the array (at index 0). The number of goals scored on February is stored in the 2nd element of the array (at index 1) and so on. a. The team wants to find the month in which they scored the maximum number of goals. Write a function named String Maxintll A) that takes the array of goals and returns the month name (a string value) in which they scored the maximum number of goals. b. The team wants to find the number of games played during the year. Note that if the team didn't play a game in a specific month, the value -I is found. Write a function int NbGames(intll A) to count the number of games played during the year Write a program in which you create an array of size 12 having all its elements initialized to -1. Then ask the user to enter a month number and the number of goals scored in that month. Your program keeps reading information till the user decides to c. stop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions