1
Reply

Help with a Program Method

Dee Walker

Dee Walker

Nov 4 2017 9:58 AM
145

I need help making a program whose Main() method prompts a user for a number of miles, passes the value to a method that converts the value to kilometers, and then returns the value to the Main() method where it is displayed. A mile is 1.60934 kilometers. Here is what i have to start:

 
using System;
using static System.Console;
class ConvertMilesToKilometers
{
static void Main()
{
.
}
public static double ConvertToKilometers(double miles)
{
}
}
 
 

Upload Source Code  Select only zip and rar file.
Answers (1)