Question: Create an application that will perform a couple of mathematical calculations. The first method that you will need to create is to calculate the y
- Create an application that will perform a couple of mathematical calculations.
- The first method that you will need to create is to calculate the y value of a line, given by the slope(m), the x value (x) and the y intercept (b). Your method should be named LineValueForY with a return type of double. Y. Your method should accept 3 parameters, all of type double. The first parameter will be the slope of the line (name this parameter m), the second parameter should be the x value (name this parameter x) and the last parameter should be the y intercept (name this parameter b). The formula to calculate the Y value is Y = mx + b
- The second method that you will need to create is to calculate the factorial of a number. Your method name should be Factorial and should have a return type of int. Your method should accept a single parameter of type int. To calculate the factorial of a number, you multiply it by every number before it. e.g. 5 factorial = 5 * 4 * 3 * 2 * 1 = 120
IN C# PLEASE !
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
