Although the subsequent code compiles and runs the


Question: Although the subsequent code compiles and runs, the programmer broke some major readability rules.

Describe at least three changes that would make it easier for other programmers to read and understand the code.

class Program { static void Main() //TBD

{

   double count;

   double Double = 10; // declare variables

   for(int i = 0;i < Double;i++) //keep doing

        {

            count=function(i);

            Console.WriteLine(count);

        }

        Console.Read();

        }

        public static double function(int a) //a function

        {

        return (Math.Sqrt(a));

        }

   }

I am having difficulty with this program because I do not know where to start with.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Although the subsequent code compiles and runs the
Reference No:- TGS0959833

Expected delivery within 24 Hours