Question: REVIEW EXERCISE A pollution index for a given day is computed by taking readings at the same time at several different locations. These readings are

 REVIEW EXERCISE A pollution index for a given day is computed

REVIEW EXERCISE A pollution index for a given day is computed by taking readings at the same time at several different locations. These readings are then averaged, and this average is compared with some cutoff value to determine if a hazardous condition exists Complete the following program by filling in the missing code. using System; namespace PollutionIndex class Program // Averages input pollution level readings and compare to a cutoff /I value for possible hazardous condition. Display a warning message // if the index is greater than or equal to the given cutoff value. static void Main(string[] args) const double CUTOFF 58.e; II Cutoff for hazardous condition double level1, leve12, leve13, Pollution level readings index; /I Average of readings Console.Writeline( Enter 3 pollution level readings: "; level1 double.Parse (Console.ReadLine)); leve12 double.Parse(Console.ReadLine)); leve13 double.Parse(Console.ReadLine)); index - (level1 + level2 level3)/3; // Check for hazardous condition. if Console.writeline("Hazardous condition) Console.writeline("Non-hazardous condition")

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!