Produce list of team by decreasing order of team performance

Assignment Help C/C++ Programming
Reference no: EM131994838

TASKS:

Your program will read two data files, set up in the same folder as was done for the first assignment. These data files are called team.dat and match.dat.

You program should have the following steps:

1. Read the national football team names and the group they belong to from the first data file and store them (wherever your program design says it is best to do so). There will be 32 names, and each group contain 4 teams. You may then close the first file. You may assume that this first data file does not contain any errors at all. The file contains the team names ordered per group.

2. Read the second data file, reading and processing one data set at a time, stopping at end-of- file. The second data file will contain data for all the games played during the current time period. Each data set in this file will consist of a result for an individual game, and will consist of 2 team names, each followed by a number of goals (that is, each data set will have the form: first_team first_score second_team second_score). It will also be possible for this file to be empty.

3. For each data set, check for data consistency. If any data item is negative the data set is invalid. Any invalid data set is reported with an error message and ignored.
E.g. Colombia 3 Poland -1 - data is invalid

4. For each data set, find the correct team's name in your data structure. If the team's name cannot be found, including matching exactly by case, then the data is also invalid, whereupon it is reported as such, and then ignored.
E.g. Columbia 2 Japan 1 - name not found in team list australia 1 France 1 - name not found in team list

5. Once the data set is valid, for each match, you will need to record the result for each team (that is the win for one team and the loss for the other, or a draw for both of them), and the goals counters. This will involve updating the data values for the respective teams. You will need to search for the names of the teams and record the respective result for each team.

6. Produce a by performance by group decreasing ordered list of the teams as per required table of reporting (below). Use an output format that will left-justify the name. This should be reasonably simple since the team names were originally input in by group order.

7. Produce (sort) an alphabetically ordered list of the teams and their performances as per required table of reporting (below). Use an output format that will left-justify the name.

8. Produce (sort) a list of teams by decreasing order of team performance as per required table of reporting (below). This will be a challenging task - think carefully about how you will compare the ranking of any two teams - this becomes the basis for sorting.

Observation: While it is possible to complete this assignment using a number of parallel arrays, your design will be better and easier to work with, if you define your own structure(s) type (it is best to use a naming convention of structname_t), and then have a single array of these objects. Your design will also benefit from having a number of functions. A solution that does not have well designed functions to perform major tasks will be marked down significantly.

Attachment:- Assignment.rar

Reference no: EM131994838

Questions Cloud

Canadian mortgage with amortization period : You are arranging a $350,000 Canadian mortgage with a 25-year amortization period and a 7 percent posted interest rate.
Crash fatality rates for a significance level : Because the? P-value is less than the significance level 0.05?, there is sufficient evidence to support the claim that there is a linear correlation
What would be the npv of the acquisition to firm : The market values of Firm V and Firm A are $1,800 and $600, respectively. Assume Firm V acquires Firm A at a cost of $650 and creates $150 in synergy.
Discuss three challenges that cloud organizations could face : What impact do these new rules have on the future of cloud computing as it relates to the three challenges you listed?
Produce list of team by decreasing order of team performance : ENGG1003 - Introduction to Procedural Programming - Produce a by performance by group decreasing ordered list of the teams
Why must marketers practice marketing control : These are marketing questions from book called Marketing an introduction by Gary Armstrong & Philip Kotler13th edition.
Combination or permutation problem : State whether you are using a combination or permutation problem.
Proportion of males and females : Is there evidence of a significant difference between the proportion of males and females who say they buy clothing from their mobile devices
Explain the concepts around your specific issue : Discuss how the theory has been used in at least 5 recent peer-reviewed journal articles in your area of interest (i.e. Software Development)

Reviews

len1994838

5/24/2018 5:30:25 AM

Your program file should adhere closely to the layout and commenting standards presented in class, and your code should be properly documented with inline comments. Remember that this assignment will take many hours to complete, and the submission itself should take less than 10 minutes. Do not waste your effort by submitting it incorrectly. This assignment is worth 12.5% of your final result for the course.

len1994838

5/24/2018 5:30:03 AM

• Remember, a completed Assessment Cover Sheet must accompany your submission. A copy of it will be placed on Blackboard, in the Assignments section. Assignments without a completed Assessment Item Cover Sheet will not be further marked. • Assignments should contain the Visual Studio project, compressed into a .zip file. Only one file per student will be allowed. • Assignments containing a compressed Visual Studio solution or project that was created outside the correct specification (see section PREPARATION) will be discounted according to the amount of time wasted by the marker in correcting the submission – if the submission cannot be made “runnable” within a reasonable amount of time then it will not be further marked.

len1994838

5/24/2018 5:29:47 AM

The only errors possible in the second input file will be as follows: 2. The File is non-existent or empty. 3. A team name may be misspelt (i.e. different to the name given in the first data file). This will result in your array/struct search not finding one of the team names given in the data set. 4. The number of goals scored by a team may be given as negative. In each case, you print out the data values read in with an appropriate warning message, and ignore the data values for that game (that is you don't update any team, even if one of the team names is correct), and you continue on to the next data set.

len1994838

5/24/2018 5:29:31 AM

Please use visual studio (2015) C++, however, it should be written in C. I posted the assignment. Please make sure you look t the assignment In order to complete it. Please comment as well for me to understand the code. Thank you. Preparation for this assignment mostly consists of making sure that your Visual Studio 2015 Solution and Project Spaces for the assignment are set up correctly so that you can easily submit the required files.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd