C#Beginner :about Math. very easy if porf 10min can do it....i'm already done just want double check
Create a C# program that inputs a double number typed by the user on the command-line, computes the absolute value, square root, and base 10 logarithm of the absolute value of this number using appropriate methods of the C# class Math, and outputs the results to the command line window.
II. Hints:
Your class must have at least 3 methods – one to get user data, one to perform computations, and one to display the results.
Make sure that you declare and use ref and out parameters of these methods to pass required data back and forth to perform data initialization and computation.
Your output should show the input number, the absolute value, square root, base 10 logarithm of the absolute valueof this number, and textual information that describes the output layout.
Your code should provide the user with detailed instructions describing the input data required and the results of processing.
III.
Enhance your code to input and process not only the number but also the logarithm base to use in logarithm calculations.
Add error processing (exception handling) to your code to recover from bad user input (e.g., character instead of number or the number too large to be raised to the selected power without the overflow).
11 years ago
5
Purchase the answer to view it

- c_asignment.rar