Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program which reads the statistics of n League A football teams and prints the team's name which fall in League B . A
Write a program which reads the statistics of n League A football teams and prints the team's name
which fall in League B A team falls in League B if it has less than k points after having played m weeks
where m is between and Each team gets three points for a win, one point for a draw and zero
points when lost.
Input Specification: In the first line, you will be given the number of teams n and the points
k needed to stay in league A Then in the following n lines, there will be the
team name and its results. Semicolon indicates the end of the input series.
Number represents win, number one represents draw and number zero represents loss.
Output Specification: Show the team names and their points which fall to League B If no team falls to
League B then shows Teams" message.
Sample Input : Sample Input :
TeamA ; Team ;
TeamB ; Team ;
TeamC ; Team ;
TeamD ; Team ;
Sample Output : Sample Output :
TeamA Teams
TeamB
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