Answered step by step
Verified Expert Solution
Question
1 Approved Answer
do as soon as possible!!! i will upvote File: calculateAve Function no. 1 averageAPI (valueAPI): total = 0 for index in range total = total
do as soon as possible!!! i will upvote
File: calculateAve Function no. 1 averageAPI (valueAPI): total = 0 for index in range total = total + average = total/14 return File: APIDay Function no. 2 def dayAPIC for APIDay in range(len(valAPI): if valAPI >=151 and valAPI print("Day", APIDay +1," alert: Unhealthy air detected! Limit prolonged outdoor activities") elif valAPI >=201: print("Day",APIDay+1," waarning: Very unhealthy air detected! Limit outdoor activities") for index print("API value Days", index+1) APIVal = int(input) #call functions aveAPI= print("Average API readings in Kuantan for 2 weeks: ", round 2)) (APIVal) Question: Table 1 is the Air Pollution Index (AP) values in Kuantan that have been collected in 14 days. Based on the values, you are required to develop a program to monitor the haze situation using function and array technique Table 2 depicts the functions that you need to develop in this program Figure 1 shows the output sample of the program Based on the program, select the correct answers in the respective answer choices Table 1: APT Values in Kuantan API 1 42 Day 67 . 9 30 105 119 23 104 101 115 19 13 190 202 Table 2 Description woute fraction Functies Descripti 1. Calculate everage AP in 14ayo I will calculate the Art value for 2. It will hely AP valor It will display antal wh the daily API racles 151200 w when the daily APT che 201 and where 22 13 14 Average API reading in Kuantan for 2 w 134.65 DAY warning: very unhealthy se detected liais outdoor activities Day 19 alert: thehealthy as detected! Limit prolonged outdoor activities Day 11 let healthy as detectedt Limit prolonged outdoor activities Day 12 alert healthy as detected! Lumit prolonged outdoor activities Day 13 Warning: Very unhealthy s detected! Limit outdoor activities Day 14 warning: Very unhealthy ait detected! Limit outdoor activities Figure 1: Output Sample 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