Click here to Skip to main content
15,615,466 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Description: in function of the Football World Cup, a friend requested you to do a program that helps you manage information about the competition.
To do this, you must implement this program in Python, which you must use
text file(s), to store data regarding teams and games.
• Display a menu for the user to select what they want to do, with the following options:
1. Exit the program.
2. New team.
Read the data of the teams (Country, abbreviation, group);
Multiple teams can be added before saving to the file, and
none of them should be lost;
3. New Game.
Read the game data (teams, goals of each team and fouls);
Multiple games can be added before saving to the archive,
and none of them should be lost;
4. Total number of games stored in the" Bank " of the World Cup.
Display the total number of saved matches in the file;
5. Total number ofteams on the "bench" of the World Cup.
Display the total number of teams saved in the file;
6. Write game data to file;
Record the information in two separate files (teams and games)
If there is already information saved in the "bank", these should not be
lose;
7. List of games on the bench and their respective teams;
Display all matches with the teams and their respective number of goals and
faults in the archives;
At the end display the total number of games listed;
• The main program must call at least 6 functions or procedures to
perform the activities referred to in items 2 to 7 listed above.
• The main program should be displaying the menu and asking the user what
he wants to do until the option to quit is selected;
•Error control should be performed, to prevent the user from using, for example, the
option 10 as this does not exist
in the menu;
• Each team may have tied for multiple games;

NOTES
.Must have commentaries
.The code must work for any word inserted, including uppercase and lowercase

What I have tried:

everything I could, but It just doesnt work.
Posted
Updated 25-Nov-22 3:15am
Comments
Dave Kreskowiak 24-Nov-22 21:03pm    
"It just doesn't work" is the most useless description of the problems you're having. Without the exact error messages, descriptions of the problems you're having, and the code you wrote where the problems occur, there is nothing anyone can do to help you.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

Just saying "I tried, but it doesn't work" isn't going to get you anywhere!

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900