diff --git a/RepeatedEditsDemo/Program.cs b/RepeatedEditsDemo/Program.cs index 9cd40c4..a23ceb8 100644 --- a/RepeatedEditsDemo/Program.cs +++ b/RepeatedEditsDemo/Program.cs @@ -13,6 +13,7 @@ static void Main(string[] args) List fTemps = new List(); List cTemps = new List(); + //main method - marking to trigger a change foreach (string s in args) { if (s != null) @@ -39,7 +40,14 @@ static void Main(string[] args) { Console.WriteLine(MinTempInC(fTemps)); Console.WriteLine(MaxTempInC(fTemps)); - Console.WriteLine(AveFTempInC(fTemps)); + //TASK 1: + //On line 49 below + //write the result of AveFTempInC() method operating on the list of fTemps, to the console + //Follow the same pattern as in the lines of code above this comment (40,41) + //PLEASE THINK OUT LOUD, + //Tell us what you are doing on the keyboard and mouse, and what you're seeing onscreen + //Is what you are seeing helping/hindering you in your task? + } if (cTemps.Count != 0) { @@ -64,6 +72,21 @@ static double MinTempInC(List fTemps) fMin = f; } } + // TASK 2 Start: Change the hardcoded Fahrenheit to Celsius conversion below + // to use FtoC(double fahrenheitTemp) function instead, throughout this file. + // + // For instance, the line below + // + // return (fMin - 32) * (5.0/9.0); + // + // will become + // return FtoC(fMin); + // + // NOTE: 1) The variable name differs in the severl other locations - it will not be fMin + // NOTE: 2) The FtoC function is already available directly in this class, + // so there is no need to worry about adding a using or reference, you can just call it + // directly + // return (fMin - 32) * (5.0 / 9.0); } diff --git a/RepeatedEditsDemo/RefactoringsDemo.csproj b/RepeatedEditsDemo/RefactoringsDemo.csproj index 5ce737e..b312a07 100644 --- a/RepeatedEditsDemo/RefactoringsDemo.csproj +++ b/RepeatedEditsDemo/RefactoringsDemo.csproj @@ -36,9 +36,7 @@ - -