Csci804 assignment write a program that can simulate a


Assignment

Purpose: Get practical experience in using

 - Class and function templates

 - Namespace

 - STL

 - stream manipulators

 - code reuse

 - UML diagrams

 - typeid()

General Requirements

  • Follow the principles of OO and generic programming
  • Put your name, student number at the beginning of each file submitted

Assignment requirements:

Write a program that can simulate a championship between competitors such as sport teams (soccer, hockey, etc), or individual players (tennis, ping-pong, badminton, etc ). You can reuse code from your own assignment2 solution. If your assignment 2 code was well structured according to the OOM, it can be efficiently reused. The major objective of this assignment is to get practical experience with object and generic programming. Sport competition simulation requirements are deliberately simplified.

BACKGROUND

The structure of the simulation is such that a given number of competitors play in a league on a double round robin basis, in which every competitor plays with all others in the league once at home and once away. It means that if there are n competitors, there would be n*(n - 1) games played.

Competitors receive two points for a win and one point for a draw (if draws are permitted). No points are awarded for a loss. Draws are permitted for teams, but draws are not permitted for individual players.

Competitors are ranked according to the following criteria:

1. By the total points first;

2. For competitors with an equal number of points, by goal difference (i.e. the number of goals scored for minus the number of goals scored against);

3. If the goal difference is also the same, by goals scored for.

4. If still equal, the competitors will occupy the same position.

DEVELOPMENT and TESTING

You need to follow good programming practices when you write the source code:

 - meaningful identifiers for data members, member functions, classes

 - no global variables

 - appropriate indentation

 - appropriate comments

To minimize time needed to complete this assignment, develop your program incrementally testing each new component added. Make sure you program is robust and does not crash. The program shall not produce memory leaks.

Attachment:- Assignment.rar

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Csci804 assignment write a program that can simulate a
Reference No:- TGS01632949

Expected delivery within 24 Hours