Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NIAP 5 1 3 2 0 2 4 Project Due: 1 3 th May 2 0 2 4 . Write a menu - driven C
NIAP Project Due: th May
Write a menudriven C program to produce a league table of your choice. Your program must:
Order teams in according to number of points they have obtained in that playing season. If teams are tied on points, then goal difference must be used to differentiate the teams with a team with a higher goal difference ranked higher than team with lower goal difference.
List the winner of the league, which is the team with the highest number of points.
List top four teams in the league.
List bottom four teams in the league.
List relegation bound teams, which are the bottom two teams.
List teams headed for playoff. These are the two top teams in the four bottom teams in the league.
Legend:
MP: number of matches a team has played.
W: number of matches a team has won.
D: number of matches a team has drawn.
L: number of matches a team has lost.
GF: number of goals a team has scored.
GA: number of goals a team has conceded.
GD: is the goal difference. The is calculated as GF GA Gf minus GA
Pts: number of points a team has attained. A team is awarded three points for each match it won; one point for each match drawn and zero for each match it has lost.
Maximum mark to be awarded is Extra will be awarded to a program that loads data from a data file when it starts running and writes data back to the data file when done.
Submit your source code cpp fileplus data file on moodle by th May
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started