Assignment 16708

Maximum points: 10 Due: 1:00 pm on November 17th, 2021
Project 4: Orange Inc.
Problem Description:
Orange Inc. is a popular electronics company which sells 5 different products: oComputer, oTablet, oCall, 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 2020, 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 2020 and the sales are expected to increase annually by 2.5%.
Product name oComputer oTablet oCall oStream oClock
Per-unit Sales in price 2020 1825 320 670 140 880 530 1910 45 485 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 2020 from the above products. Next, using the annual growth rate for each product, compute the projected sales in the year 2024. Assuming the per-unit price remains the same in all the years, compute the projected revenue in the year 2024.
Hint for Task: Create three arrays of appropriate data-type: (i) productPrice, (ii) productSales, and (iii) productRevenue. You already know the elements in productPrice and productSales. Using a for-loop, compute the revenue for each product and store it in the productRevenue array. Sum the elements in productRevenue to calculate total revenue.
ITSS 3311.004 – OPRE 3311.004 Introduction to Programming, Fall 2021 Project 4
To calculate the revenue in 2024, you will first need to compute the projected sales of each product in 2024. 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:
𝑔𝑟𝑜𝑤𝑡h𝑟𝑎𝑡𝑒 “#$%