Reference no: EM131238948
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
Performance enhancing drug adderall during exam time
: Students apparently consume mass quantities of the performance enhancing drug adderall during exam time. Normally, the price is $3 for 10 mg, but it rises during exam week to at least $5. Suppose that word gets around to the drug dealers that the equ..
|
What problem area would the internet intervention address
: Provide a general description of the proposed internet intervention. How would the effectiveness of the proposed intervention be tested? What are any legal and ethical issues related to the proposed intervention? Include the specific APA ethical st..
|
What is the difference between layering and partitioning
: What is the difference between layering and partitioning? Which one of these structuring techniques supports the design of error-containment regions? Discuss the advantages and disadvantages of introducing structure into a design
|
Who is the protagonist of the odd couple and why
: Who is the protagonist of The Odd Couple and why? - Who is the antagonist of The Odd Couple and why? The antagonist must be a character we the audience SEE in the play.
|
Write a program that can simulate a championship
: CSCI804 Assignment. 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
|
Vision-mission and values statements
: The course is structured so that each week you will work on specific segments of your marketing plan for the Final Project that is due in Week Six.
|
About adapting growth accounting to developments in economy
: Recall the Application about adapting growth accounting to new developments in the economy to answer the following? question(s). According to this? Application, economists Carol Corrado and Charles Hulten found that
|
Discuss different types of constraints that restrict design
: Discuss the different types of constraints that restrict a design. Why is it important to explore these constraints before starting a design project? Discuss the most important interfaces in a distributed real-time system architecture
|
Explain six main roles of social workers in long-term care
: Explain the six main roles of social workers in the long-term care setting are as follows: informational, case manager, coordination, enabler, intervention, and advocacy.
|