Write a C# console application that does the following:
The application will capture the sales figures from 3 salespersons for 4 products. The user will be asked to enter the salesperson number (1,2 or 3) followed by the sales figure (integer) for product (1,2,3, or 4). For each salesperson each product sales data can be entered only once. (Example: if we have already entered sales data for product-1 for salesperson-1, we cannot enter it again.). Store the sales data in a rectangular array and display on the console (after all data has been entered), the sales data with products in the rows and salespersons in the column. Include row totals and column totals in the output.
Display appropriate console messages for the data entry person to enter the data and to terminate data entry. For example: “Enter salesperson number:”, “Enter Product Number:”,”Enter Sales Amount:”, “Enter xxx to stop data entry”. The data entry person can enter the data in any order (any sales person and any product, but each combination can be entered only once – message: “The data has already been entered”). Assume that any data not entered is set to zero.