Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
COSC326 2021 Semester 2 Étude 2

Task

Task Your program will process an input file from stdin and put output to stdout. The contents of the input file should be the results of a single series of games between a number of players where each player has a bye in a single round. Correctly formatted input is as above, for example, 1 2 1 3 2 2 1 3 3 2 3 1 COSC 326 2021 Semester 2 Étude 2 If there is a failure of formatting (e.g., not all rows have the same number of items, or the number of items in a row is not one more than the number of rows, or there are one or more items that are not integers) then your output should simply be one line: Bad format If the format is correct but the values are not – meaning that some entry or entries are not integers in the range from 1 to the number of rows inclusive, then the output should again be a single line: Bad values Otherwise your program should attempt to construct valid results for the games played. If this is impossible then the output should again be a single line: Inconsistent results Otherwise the output should print all the possible results in grid form as above (using underscore to denote byes) with each set of possible results separated from the next by a blank line. Finally, in this case, your program should count how many essentially different results there are (where two results must differ by more than the order of games played in order to count as essentially different) and print a final line (separated from the last set of results by a blank line) Different results: <

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close