Question: Write a C# Sharp program to check whether a triangle is Equilateral, Isosceles or Scalene using if else statement and invoking method To practice and
To practice and learn the following coding skills: - Methods with passing a parameter as pass-by-reference out - If-else statements - Combining Boolean expressions (conditions) with AND (&&), OR (II) - Using TryParse() method instead of Parse - Using bool data type variables Instructions We would like to modify the program in assignment 3 and add user input validation and more features to it. Step 1: we must change the method GetUserinput The method must get 3 inputs and return 2 outputs. 3 inputs are: textMessage, min, and max. The 2 outputs are: - the value that user has entered - a Boolean value that signals if the user input was valid or not (true or false). Because our method has two outputs, so we consider one of them as a return value (ising return statement in the method) and one output as out pass-by-reference type parameter. Therefore, GetUserinput method has 4 parameters (one of the them is out type) and one return value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
