Answered step by step
Verified Expert Solution
Link Copied!

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

NIAP5132024 Project Due: 13th May 2024.
Write a menu-driven C++ program to produce a league table of your choice. Your program must:
1. 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.
2. List the winner of the league, which is the team with the highest number of points.
3. List top four teams in the league.
4. List bottom four teams in the league.
5. List relegation bound teams, which are the bottom two teams.
6. List teams headed for play-off. 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 90%. Extra 10% 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 file)(plus data file) on moodle by 13th May 2024.

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

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions