Question: 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

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

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 Databases Questions!