Course Solutions Uncategorized (Solved) : C Csharp Given Using System Public Class Temperatures Public Static Void Main String Args Q33115068 . . . .

(Solved) : C Csharp Given Using System Public Class Temperatures Public Static Void Main String Args Q33115068 . . . .

 

C# – CSharp

Given:

————————————
using System;

public class Temperatures
{
public static void Main(string[] args)
{
double[] temperatures = {-0.9, 10.8, -16.3, 22.8, -10.0,19.0};
Array.Sort(temperatures);
Console.WriteLine(“Minimum temperature is: ” +temperatures[0]);
Console.WriteLine(“Maximum temperature is: ” +temperatures[temperatures.Length-1]);
}   
}
—————————————-
Now, the array has changed to:

// ragged array to store temperatures
double[ ] [ ] temps = { new double[31], new double[28], newdouble[31], new double[30],
new double[31], new double[30], new double[31], newdouble[31],
new double[30], new double[31], new double[30], new double[31]};
int row = 0; // row counter variable
int col = 0; // column counter variable

and the data will be read from a text file (also given) usingtry/StreamReader (all of that code is given as well)
the text file contains 12

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post