Skip to content

Repository for "Football Championship" project from Technical University made using C++.

Notifications You must be signed in to change notification settings

ngdechev/football-championship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version GitHub repo size Bitbucket open issues

Basic Programming Project

Assignment - "Football Championship"

To write a computer program implementing an information system that supports soccer championship (Registration number, Team name, Year of foundation, list of matches played). The program stores and processes data about participating teams and played matches. There are 3 participants in the championship until 5.

Basic task – Difficulty Low

  • Menu for selecting the functions in the program. (week 7)
  • Adding participants to the championship (week 7-8)
    • Add a participant (Name and city);
    • Adding a list of participants. An integer n is entered followed by n of the number of participants.
  • Bringing all teams from the championship to the screen (week 8-9).
    • Output teams with the earliest year of foundation
    • Bringing out the teams with the fewest losses

Addendum One - Difficulty Medium (+ Basic Task)

  • Holding the championship (week 10-11)
    • All teams meet each other in swapped away games, randomly generated the result of the match and is recorded in a list of matches played for the two participating teams;
    • A table with the played matches and results is displayed.

Supplement Two - Difficulty High (+ Base Task + Supplement One)

  • Search for teams in the championship: (week 9-10)
    • Displaying the team with all played matches by entered team name;
    • Displaying the results of the matches played for two teams, by entered names;

Supplement Three – Difficulty High (+ Base Task + Supplement One + Supplement Two)

  • References for the participants teams with sub menu (11-12 weeks)
    • Display all participants in order by:
      • Year of foundation of the team;
      • Points earned.
    • Output of the team that scored the most hits;
      • Bringing out the team with the best goal difference.
  • The data in the program can be saved in a file between two starts of the program.

Supplement Four – (for extra points)

  • Additional conditions:
    • When adding a new participant, give the option of choosing whether to enter a new one or interrupt input.
    • To realize the display of the teams in tabular form (Name of the team, scored goals, goals conceded, points and games played with a result).
    • To save the data to a binary file.

Run the program (.exe file)

Path to the program's .exe file:

..\FootballChampionship\Debug\FootballChampionship.exe

Path to text file (Appendix Three):

..FootballChampionship\Debug\footballMatches.txt

Path to the program binary (Appendix Four):

..FootballChampionship\Debug\footballMatches.dat

Project development

The following programming languages were used for the development of the project:

  1. C++

And the following tools:

  1. Visual Studio 2019

C++ Visual Studio

Screenshots of the program execution

Main menu

1.png

Introduction of the teams / participants

2.png

Print the teams on the screen

3.png

The earliest team created

4.png

Generate the meetings / matches

5.png

Reference menu

6.png

Submenu 1 - Display all participants in order

7.png

Display all participants in order - by year of foundation

8.png

Display all participants in order - by points earned

9.png

Menu to save appointments to a file

10.png

Save to File – Text

11.png

Save to file - Binary

12.png

About

Repository for "Football Championship" project from Technical University made using C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages