Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write in python A certain coding competition stores the following information for each competing team: team name, number of problems solved, and time taken in
write in python A certain coding competition stores the following information for each
competing team: team name, number of problems solved, and time
taken in minutes. This data is stored in a data structure that is originally
empty. Write a program to create the data structure, and do the following
using a menu:
1. Add a new team.
2. Print the team name, number of problems solved, and time taken for
all teams in a nice table format.
3. Print the team name, number of problems solved, and time taken for
only teams that solved more than 3 problems.
4. Print the name of the winning team(s). The winning team(s) is the
team(s) that solved the most problems.
5. Print the average time taken.
6. Exit
Bonus question: If there are more than one team that solved the max
number of problem, then the real winner is the one that finished in the
least time. Assume that the time taken is different for all teams. Modify
option 4 above so that it prints the real winner only.
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