Question: You will write a program that aims to represent a team and does some computations based on that. For this program, you need to provide

You will write a program that aims to represent a team and does some computations based on that. For this program, you need to provide the following: a. Declare a structure called "team" that represents a football team and stores the following information: the number of matches won, the number of matches lost and the name of the team b. Write a function called createTeam() that takes the necessary values and returns a team structure c. Write a function called equalTeam() that takes two team structures and returns true if the number of wins and losses are equal and false otherwise d. Write a function called loosingGame() that takes a team structure and updates the data for that team. A team's lost value will be incremented by one e. In your main function declare the necessary structure to represent the following information about three teams Name Galatasaray Fenerbahce Besiktas Lost Won 10 10 5 f. Write a function called stats() that takes the information given in the table above and calculates the total of games played, average won and lost It has to be in C Stdio.h Stdlib.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
