Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Programming The Air Pollution Index (API) is a common way to describe the air quality. Table 1 describes the simple scale used to classify
C++ Programming
The Air Pollution Index (API) is a common way to describe the air quality. Table 1 describes the simple scale used to classify the quality of air in Malaysia. API Air Quality 0 - 50 51 - 100 101 and above Good Moderate Unhealthy Table 1 In Peninsular Malaysia, haze is most likely to occur during the months from January to February and June to August due to human activities such as open burning, land clearing, vehicular use and combustion of fossil fuels in industrial boilers. During the last haze incident, the meteorological department had recorded API reading in a district for a week as shown in the Table 2: 6 120 Day 1 2 3 4 5 7 API 48 90 150 300 250 100 value Table 2: API reading for a week Your task is to write a program that contains the following tasks Declare an array APIvalue and initialize the array with the data based on Table 2. Compute and display the following information Description Number of day Good Moderate Unhealthy 1 2 4 (10 marks)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