× Home (CS 211) Notes Projects Waxman's Website

Description

The goal of this project is to calculate the average rank for each team and determine the winning team.

Data Representation

There will be two arrays to represent the scores of each team and the number of runners in each team.

Getting the total score and number of teams

If runner[i] is 'A', it means that team A has a runner ranked (i+1).For each character in the outcome string, increment the total score of the correct team by the runner's rank. The number of non-zero scores will be the number of teams.

Template


Template

Result


This is to be submitted on blackboard as a .cpp file. File name follows the following format: lastName_firstName.cpp