Read (day-of-the-week,value) pairs from standard input. For example: Tuesday 23 Friday 56 Tuesday 3 Thursday 99 Collect

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: