Question: CASE The company AG Solutions is interested in developing software that allows it to calculate the total sales of the products it sells. It is

CASE The company AG Solutions is interested in developing software that allows it to calculate the total sales of the products it sells. It is also interested in knowing the movement of specific products to be able to redefine its marketing strategies. Likewise, the company seeks to validate the sales movement in some provinces to identify whether it needs to increase its salesforce and thus position itself as the #1 grocery company in Panama. Below is a table of sales made for evaluation (see image attached)
Write code in Java language that contains the following:
1. Create an array that allows storing the Product_ID, Price and unit
sold.
2. An iteration statement that allows reading all purchased items.
3. A conditional sentence that evaluates the sales of the province of Panama
West.
4. A conditional sentence that evaluates the sales of the province of Herrera.
5. Make a total for the rest of the provinces.
6. A conditional sentence that evaluates how many pounds of chicken was purchased.
7. Validate that the value of the variable (Amount) is an integer. If the value
of this variable is null or string, use the number 1 instead.
CASE The company AG Solutions is interested in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!