18
1
// Directions: Intermediate #2-2
2
// 1) Add code to the Main method:
3
// a) Create a static method called CalcEnergy to calculate Kinetic energy
4
// b) Call the new method from the Main Method and pass two declared and assigned variables: mass and velocity.
5
// c) The method should have two input parameters: mass and velocity
6
// b) The method should return the result.
7
// c) Output should be in the following format: "Mass: 12.5 kg, Velocity: 3.8 m/s, Energy: 90.25 Joules"
8
// 2) Submit your dotnetfiddle link in Blackboard.
9
10
11
public class Program
12
{
13
public static void Main()
14
{
15
}
16
17
18
}
Cached Result