Question: Write a C++ program that tell the team qualified for the football tournament semifinals. Your program should ask the user about the number of

Write a C++ program that tell the team qualified for the football tournament semifinals. Your program should ask the user about the number of teams included in the tournament. After taking from the number of input from the user the program should automatically allocate the dynamic memory for the number of teams. Take the input of the number of match won and loss during previously played rounds by teams. The points will be granted for each team according to the following rules. A team won a match will be granted for points for withdraw 2 points will be given to each team whereas no point is granted if a team loss a match. Your program should include a class team with following data members Team ID noOfTeam country //on which the team belongs match played won loss point Where the noOfTeam should be static and will be incremented on the creation of each object. The increment value of noOfTeam should be assigned to Team ID in the constructor's definition. This is how it assign the Team_ID for each new team. Submission Submit all the compiled file with this assignment. Viva will be conducted for this assignment. Similar code will leads to zero marks.
Step by Step Solution
3.40 Rating (169 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
