Question: In C# I am having issues completing my assignment. here is what I have so far. if (args.Count() != 3) { Console.WriteLine(string.Format(Expected 3 parameters, recieved

In C# I am having issues completing my assignment. here is what I have so far.

if (args.Count() != 3) { Console.WriteLine(string.Format("Expected 3 parameters, recieved {0}", args.Count())); Environment.Exit(100); } if (args) { Console.WriteLine(a); } else { Console.WriteLine("One or more parameters is a negative integer."); Environment.Exit(200); } try { //Triangle T = new Triangle(3, 4, 5); //Console.WriteLine(T.ToString()); } catch (Exception ex) { Console.WriteLine(ex.Message); Environment.Exit(500); } Console.ReadLine();

 In C# I am having issues completing my assignment. here is

Use Visual Studio in the course VM to develop a .Net Framework Console App named TriiEval which has the following features. Since we are mostly about interfaces a C# Triangle Class is provided to do the 'heavy lifting of evaluating the triangle. 1. Three values should be accepted from the command line representing the lengths of a triangle's three sides as integers (i.e., not fractions like 2.3 or 147.27132) 2. The application should report back a message of the form "A triangle with sides {side1}, {side2}, {side3} is {type} with perimeter {perimetery and area area)" but note that the ToString) method of the C# Triangle Class provides the appropriate output. 3. Interface stuff: The application should not have a user dialog with prompts for entry, it should run with one line from the command prompt and return results or an error, something like Trieval 3 4 5 4. Interface stuff: The application should return an error with code 100 and an appropriate message if the number of parameters provided is not exactly 3 5. Interface stuff: The application should return an error with code 200 and an appropriate message if any parameter is not a positive integer 6. Interface stuff: The application should return an error with code 500 and an appropriate message for any reason the Triangle class fails When complete copy your TriEval.exe -- from something like C:\Users\{LoginID}\source repos {SolutionName}{{ProjectName}\bin\Debug -- to your deployment folder in DevApps (not DevWebs which is reserved for internet facing content). Nothing to turn in since I will test your deployed application in your DevApps folder and -- if I feel the need -- find your source in your repos folder. Use Visual Studio in the course VM to develop a .Net Framework Console App named TriiEval which has the following features. Since we are mostly about interfaces a C# Triangle Class is provided to do the 'heavy lifting of evaluating the triangle. 1. Three values should be accepted from the command line representing the lengths of a triangle's three sides as integers (i.e., not fractions like 2.3 or 147.27132) 2. The application should report back a message of the form "A triangle with sides {side1}, {side2}, {side3} is {type} with perimeter {perimetery and area area)" but note that the ToString) method of the C# Triangle Class provides the appropriate output. 3. Interface stuff: The application should not have a user dialog with prompts for entry, it should run with one line from the command prompt and return results or an error, something like Trieval 3 4 5 4. Interface stuff: The application should return an error with code 100 and an appropriate message if the number of parameters provided is not exactly 3 5. Interface stuff: The application should return an error with code 200 and an appropriate message if any parameter is not a positive integer 6. Interface stuff: The application should return an error with code 500 and an appropriate message for any reason the Triangle class fails When complete copy your TriEval.exe -- from something like C:\Users\{LoginID}\source repos {SolutionName}{{ProjectName}\bin\Debug -- to your deployment folder in DevApps (not DevWebs which is reserved for internet facing content). Nothing to turn in since I will test your deployed application in your DevApps folder and -- if I feel the need -- find your source in your repos folder

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!