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
- Suppose that during the year 2025, a software company spends $800,000 on research and development (R&D) to create a new iPhone app called “Pheromone
- Imagine you are the owner of a small company about to expand in a big way. You need to change your vision statement to express this change. Develop an essay
- Sub-prime mortgage crisis. Please discuss what effects the increase in mortgage delinquency, default and foreclosure had on the following: U.S. Housing Prices,