Write in a program that reads in the coffee preference rating data below. The data came from a marketing experiment in which male and female subjects were asked to taste one of the three different brands of coffee (A, B, and C) with each brand tasted twice, once at breakfast and once at dinner. The preference ratings were scored on a scale of 1 to 10, 1 being the lowest rating. Print out the data so that all the variables (subject, gender, brand, and ratings for each meal) are recorded.
Gender | Brand of Coffee |
A | B | C |
Subj | Breakfast | Dinner | Subj | Breakfast | Dinner | Subj | Breakfast | Dinner |
Male | 1 | 7 | 8 | 7 | 4 | 6 | 13 | 8 | 9 |
2 | 6 | 7 | 8 | 3 | 5 | 14 | 6 | 9 |
3 | 6 | 8 | 9 | 3 | 5 | 15 | 5 | 8 |
Female | 4 | 5 | 7 | 10 | 3 | 4 | 16 | 6 | 9 |
5 | 4 | 7 | 11 | 4 | 4 | 17 | 6 | 9 |
6 | 4 | 6 | 12 | 2 | 3 | 18 | 7 | 8 |