Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 In June 2021, Perodua has release their sales report for their car sales for five different states in Malaysia which are WP Kuala
Question 2 In June 2021, Perodua has release their sales report for their car sales for five different states in Malaysia which are WP Kuala Lumpur, Johor, Penang, Pahang and Sarawak. As a programmer hired by the Perodua you are required to write an application that provide a sales report to all the sales centers. Table 1: Sales Report for Perodua in Five States in Malaysia for May and June 2021 WP Kuala Lumpur Johor Penang Pahang Sarawak 2500 May Axia Bezza 2500 1500 2800 3000 1300 2800 3000 1300 1500 Myvi 2000 3000 3200 2300 1000 Aruz 2100 2500 1200 1800 1800 Myvi 2300 2500 2000 2000 800 June Axia Bezza 2800 1300 5000 1400 2500 1500 2500 1300 1000 1800 Aruz 1800 2400 1000 1000 2100 The program will initialize the information for last two-month of total unit of car been sold for each state (see Table 1) into 2-dimensional arrays. The columns shows months and type of Perodua's car, while the rows represent list of five states in the report. By using for loop and two-dimensional array, the program then summarize: 1) The total sales for each state by both month by each type of Perodua's car. 2) Cross total each row to get the total sales each Perodua's car in May and June. 3) Cross total each column to get the total sales for each state in May and June. 4) List Perodua's car and state that has highest total sales for both months. (25 Marks/Markah)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started