View the step-by-step solution to:

Write a C# console application that does the following: The application will capture the sales figures from 3 salespersons for 4 products.

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.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question