A weather station provides a couple of daily temperatures (maximum, minimum) (it is not possible for either or both temperatures to be 9 degrees). The end temperature pair is 0, 0. Create a program that determines the number of days, whose temperatures have been provided, the maximum and minimum averages, the number of errors – temperatures of 9 ° – and the percentage they represented.

A weather station provides a couple of daily temperatures (maximum, minimum) (it is not possible for either or both temperatures to be 9 degrees). The end temperature pair is 0, 0. Create a program that determines the number of days, whose temperatures have been provided, the maximum and minimum averages, the number of errors – temperatures of 9 ° – and the percentage they represented.

  1.  

Answer:

c# language

Using System;

Namespace Tem {

Class Myapplication {

public static void Main () {

Int n, m, k=1;

for (i=1; i<=k; i++)

{

Console.WriteLine(“Enter the Couple of Daily Temperature:”);

Console.ReadLine(n, m);

If (n! =9&&m! =9)

k=(n+m)/2;

}

Console.WriteLine(“The Number of Days:”);

Console.ReadLine (k);

}

}

}

 

Order a similar paper

Get the results you need