Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROGRAMMING ASSIGNMENT 1 Due Date: 0 6 . 1 1 . 2 0 2 3 2 3 : 5 9 1 Problem Write an object
PROGRAMMING ASSIGNMENT
Due Date: :
Problem
Write an object oriented program that creates the standing tables from the given all matches result separately of the Football, Basketball, Handball and Volleyball sports.
Information about the sports
In Football, in which three points are awarded to the team winning a match, with no points awarded to the losing team. If the game is drawn, each team receives one point.
In Handball, in which two points are awarded to the team winning a match, with no points awarded to the losing team. If the game is drawn, each team receives one point.
In basketball, in which two points are awarded to the team winning a match, with one point awarded to the losing team.
In volleyball, points for won and lost matches are allocated as follows:
points for the winner : or : of a match,
points for the winner : of a match,
point for the loser : of a match,
point for the loser : or : of a match
If two or more teams have same points, standings will change as follow: The team with the total number of goals scored more than the number of goals conceded will be standigns higher. If it is also equal, stand them as alphabetic order.
Restrictions
You must implement your codes by class structure.
There are teams in each sport type.
The initial scores of the teams in each sport type are zero.
The teams for each sport type are in a different group. You are expected to calculate the instant standings according to the scores in the fixtures.txt
Sample Input and Outputs
Sample input file named as fixtures.txt:
First letter of sport tab name of first club tab name of second club tab match resultnewline
fixtures.txt
tableFReal Madrid,Napoli :BKarsiyaka,Bahcesehir,:
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