Project 4: Orange Inc. Problem Description: Orange Inc. is a popular electronics company which sells 5 different products: oComputer, Tablet, Call, oStream, and oClock Table 1 displays the information about these products. In that table, the first column displays the name of the product, the second column displays the per-unit price of the corresponding product, the third column represents the sales (number of units sold) of that particular product in the year 2018, and the fourth column represents the annual growth rate of sales. Thus, the unit price of the product oCall is 880; there were 530 units sold in 2018 and the sales are expected to increase annually by 2.5%. Product name oComputer o Tablet oCall oStream oClock Per-unit price 1825 670 880 1910 485 Sales in 2018 320 140 530 45 160 Sales growth | rate (annual) 2.25% 3.5% 2.5% 4.3% 0.8% Table 1: Information about Orange Inc. products As a star Business Analyst at Oracle Inc., you are often consulted for analyzing different business strategies. You have the following task to perform: Task: Compute the revenue to Orange Inc. in the year 2018 from the above products. Next, using the annual growth rate for each product, compute the projected sales in the year 2025. Assuming the per-unit price remains the same in all the years, compute the projected revenue in the year 2025. Hint for Task: Create three arrays of appropriate data-type: productPrice (1) product Sales, and (ii) productRevenue. You already know the elements in product Price and productSales. Using a for-loop, compute the revenue for each product and store it in the product Revenue array. Sum the elements in productRevenue to calculate total revenue. To calculate the revenue in 2025, you will first need to compute the projected sales of each product in 2025. Create a method ProjSales that takes three parameters as input: the base sales, the growth rate, and the number of years. The method then returns the projected sales using the following formula: ProjectedSales = BaseSales (1 + growth rate number of years 100 ) For example, if the sales in 2018 are 1000, the growth rate is 10.5%, then the projected sales after 10 years is simply: 1000(1+ 10.5/100)^10. Use Math.pow(a, b) function to compute a b. Once you create the method ProjSales, then you can compute the projected sales for each product in the year 2025 and store it in a new array, say productSales2025. Using the product prices from the product Price array, compute the projected revenue for the year 2025. Deliverables: Your java file including: • The total revenue in 2018 (as a comment on top of your code) • The projected revenue in 2025 (as a comment on top of your code) Grading 1. Define arrays productPrice, productSales2018, growth Rate, product Revenue 2018. (1 points) 2. Define a loop that calculates productRevenue 2018 and totalRevenue 2018. (2 points) 3. Display the total revenue in 2018. (0.5 points) 4. Define a method ProjSales that takes 3 inputs, productSales 2018, growthRate, numberOfYears; calculates the projected sales in 2025 within a loop, and returns an output, product Sales 2025. (3 points) 5. Define a variable productSales 2025 in the main method, and invoke a method ProjSales that sets the values of productSales 2025. (1 points) 6. Define a loop that calculates productRevenue 2025 and totalRevenue2025 (2 points) ITSS 3311.004 Introduction to Programming, Fall 2019 Project 4 7. Display the total projected revenue in 2025, (0.5 points) Show transcribed image text Project 4: Orange Inc. Problem Description: Orange Inc. is a popular electronics company which sells 5 different products: oComputer, Tablet, Call, oStream, and oClock Table 1 displays the information about these products. In that table, the first column displays the name of the product, the second column displays the per-unit price of the corresponding product, the third column represents the sales (number of units sold) of that particular product in the year 2018, and the fourth column represents the annual growth rate of sales. Thus, the unit price of the product oCall is 880; there were 530 units sold in 2018 and the sales are expected to increase annually by 2.5%. Product name oComputer o Tablet oCall oStream oClock Per-unit price 1825 670 880 1910 485 Sales in 2018 320 140 530 45 160 Sales growth | rate (annual) 2.25% 3.5% 2.5% 4.3% 0.8% Table 1: Information about Orange Inc. products As a star Business Analyst at Oracle Inc., you are often consulted for analyzing different business strategies. You have the following task to perform: Task: Compute the revenue to Orange Inc. in the year 2018 from the above products. Next, using the annual growth rate for each product, compute the projected sales in the year 2025. Assuming the per-unit price remains the same in all the years, compute the projected revenue in the year 2025. Hint for Task: Create three arrays of appropriate data-type: productPrice (1) product Sales, and (ii) productRevenue. You already know the elements in product Price and productSales. Using a for-loop, compute the revenue for each product and store it in the product Revenue array. Sum the elements in productRevenue to calculate total revenue.

To calculate the revenue in 2025, you will first need to compute the projected sales of each product in 2025. Create a method ProjSales that takes three parameters as input: the base sales, the growth rate, and the number of years. The method then returns the projected sales using the following formula: ProjectedSales = BaseSales (1 + growth rate number of years 100 ) For example, if the sales in 2018 are 1000, the growth rate is 10.5%, then the projected sales after 10 years is simply: 1000(1+ 10.5/100)^10. Use Math.pow(a, b) function to compute a b. Once you create the method ProjSales, then you can compute the projected sales for each product in the year 2025 and store it in a new array, say productSales2025. Using the product prices from the product Price array, compute the projected revenue for the year 2025. Deliverables: Your java file including: • The total revenue in 2018 (as a comment on top of your code) • The projected revenue in 2025 (as a comment on top of your code) Grading 1. Define arrays productPrice, productSales2018, growth Rate, product Revenue 2018. (1 points) 2. Define a loop that calculates productRevenue 2018 and totalRevenue 2018. (2 points) 3. Display the total revenue in 2018. (0.5 points) 4. Define a method ProjSales that takes 3 inputs, productSales 2018, growthRate, numberOfYears; calculates the projected sales in 2025 within a loop, and returns an output, product Sales 2025. (3 points) 5. Define a variable productSales 2025 in the main method, and invoke a method ProjSales that sets the values of productSales 2025. (1 points) 6. Define a loop that calculates productRevenue 2025 and totalRevenue2025 (2 points)

ITSS 3311.004 Introduction to Programming, Fall 2019 Project 4 7. Display the total projected revenue in 2025, (0.5 points)

## Expert Answer

Answer to Project 4: Orange Inc. Problem Description: Orange Inc. is a popular electronics company which sells 5 different product…