I am currently taking C++ class and we have this homework that we have to do. I have been working with my classmates and I am trying to figure out how to label the rows and I did find a code but it is printing out weird. Also, how can I add the total column? At one point, I was able to add the total column but the sum of other columns were off. Can any please help? I'd greatly appreciate any input.
Total columns and rows were correct, but looked weird because they were not under their corresponding columns. In order for the rows to match up with the data, you must first print the sales person number, then print out the row data. For each row. Here's one way to do it..
Please note: In the future, when you post code, highlight the code after pasting and click the <> symbol in the menu, on the right, under format: It makes reading, and commenting on the code, a lot easier, plus it formats the code, as you can see above. Thanks. Lecture over ;)