| 48 | } |
| 49 | |
| 50 | int main() |
| 51 | { |
| 52 | main_menu_view1(); |
| 53 | int a[3][5]; |
| 54 | // inputting numbers for the 2D array |
| 55 | cout << "Please input 5 Sales for Salesman 1, Salesman 2 and Salesman 3: \n "; |
| 56 | for (int row = 0; row < 3; row++) |
| 57 | { |
| 58 | for (int col = 0; col < 5; col++) |
| 59 | { |
| 60 | cin >> a[row][col]; |
| 61 | } |
| 62 | } |
| 63 | cout << "Main table of Salesman and Sales: \n"; |
| 64 | for (int row = 0; row < 3; row++) |
| 65 | { |
| 66 | for (int col = 0; col < 5; col++) |
| 67 | { |
| 68 | cout << a[row][col] << " "; |
| 69 | } |
| 70 | cout << endl; |
| 71 | } |
| 72 | cout << endl; |
| 73 | salesman_sum(a); |
| 74 | cout << endl; |
| 75 | sales_sum(a); |
| 76 | system("pause"); |
| 77 | return 0; |
| 78 | } |
nothing calls this directly
no test coverage detected