I am trying to find a way to store the user entry in the second column of the 2D Array. It's my second C++ assignment ever so forgive me if it's a rookie mistake. Every time I run the program it works but it only displays "0x28Feb8" after I enter the number. I've been working on this for over a dozen hours so any help is appreciated.
Ok, that would explain the error. Is there a way to save a user entry into the second column of entries or should I just throw away the code altogether? Thanks for your help by the way!
This is only about 1/10th of the program I need to make. Basically I have to store 5 user entries as each element in the second column then somehow tie the first column to the topics Array. That's what the book tells me at least.
I'll just write the description the book gives me, might give you a better idea. Not that I want the whole assignment done for me, I definitely need to learn this stuff as my major is programming.
Pick 5 causes. Use a one dimensional string array 'topics' to store the causes. To summarize the survey responses, use a 5-row, 10 column two dimensional array 'entries', each row corresponding to an element in the 'topics' array. When the program runs it should ask the user to rate each issue. Have people respond to the survey. Then have the program display a summary of the results, including:
a) A tabular report with the five topics down the left side and the 10 ratings across the top, listing in each column the number of ratings received for each topic.
b) To the right of each row, show the average of the ratings for that issue.
c) Which issue received the highest point total? Display both the issue and the point total.
d) Which issue received the lowest point total? Display both the issue and the point total.
user to rate each issue ...
Have people respond to the survey ...
the 10 ratings ...
in each column the number of ratings ...
I'm not sure what it says, but my guess is that a user must give a value [1..10] (or [0..9], or whatever set of ten different "ratings") for each topic. One element in the 2D array would then be a count of how many times that value (column) has been chosen for that issue (row) by users.