Answered step by step
Verified Expert Solution
Link Copied!

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 1
Due Date: 06.11.202323:59
1 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.
1.1 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:
>3 points for the winner 3:0 or 3:1 of a match,
>2 points for the winner 3:2 of a match,
>1 point for the loser 2:3 of a match,
>0 point for the loser 0:3 or 1:3 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.
1.2 Restrictions
You must implement your codes by class structure.
There are 4 teams in each sport type.
The initial scores of the 4 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
1.2 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 result]newline
fixtures.txt
\table[[F,Real Madrid,Napoli 2:1,],[B,Karsiyaka,Bahcesehir,68:70
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

What is a job analysis?

Answered: 1 week ago

Question

What are the main provisions of the Fair Labor Standards Act?

Answered: 1 week ago