Question: Implement a simple football league system that will record and display the league according to the following specification: Each Team will have the following attributes:

Implement a simple football league system that will record and display the league

according to the following specification:

Each Team will have the following attributes:

Name

Games played

Games won

Games lost

Games drawn (this should be a calculated value)

Points (calculate using 3 points for a win and 1 for a draw)

Your program must include the following functionality:

(a)The ability to enter a team's results from the keyboard. (5 Mark)

(b)All records entered must be written to a text file. (5 Mark)

(c)The system must allow new records to be added to the end of the file. (5 Mark)

(d)An option to read the file and display the information on the screen should be given.

(5 Mark)

NB

Your program should run all the above functions without shutting down.

You can include any additional functionality that you consider would make the program more

useful or user friendly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!