Question: Read (day-of-the-week,value) pairs from standard input. For example: Tuesday 23 Friday 56 Tuesday 3 Thursday 99 Collect all the values for each day of the
Read (day-of-the-week,value) pairs from standard input. For example:
Tuesday 23 Friday 56 Tuesday –3 Thursday 99
Collect all the values for each day of the week in a vector. Write out the values of the seven day-of-the-week vectors. Print out the sum of the values in each vector. Ignore illegal days of the week, such as Funday, but accept common synonyms such as Mon and monday. Write out the number of rejected values.
Step by Step Solution
3.35 Rating (167 Votes )
There are 3 Steps involved in it
include stdafxh include stdlibfacilitiesh include class ValuePair private create a name value pair variable struct DayValue int value string day publi... View full answer
Get step-by-step solutions from verified subject matter experts
