Hello I need some help. the following is what I have. It keeps going me a error. Can you help me. It has to be turn in tonight at 1:00 am the latest.
There is an error at terminate program calling method.
This program creates the basic user interface code for that can be re-used in the following week’s iLab assignments. The assignment will help you get started using the programming environment and some practice with coding. You will also be able to re-use much, if not all, of the code in later assignments.
In order to reuse the code in the following weeks, you will include different parts of the program in the following three separate files within Visual Studio
1. Program.cs will hold the Main method, which is the starting point for the program execution.
2. ApplicationUtilities.cs will hold the re-usable methods that provide the user information about the application.
3. InputUtilities.cs will hold the re-usable methods that will collect the user information.
Using the methods defined in these classes you will construct a program that prompts the user for the following:
1. Your name, which will be a string data type
2. Your age, which will be an integer data type
3. The gas mileage for your car, which will be a double data type
//Program Name: Basic User Interface
//Programmer: Albert Daniel
//CIS2247, Week 1 Lab
//Program Description: The following program takes what the user inputs.
static void Main(string args)
name = GetInput("Your Name"); Console
.WriteLine("Your name is " + name);
input = InputUtilities.GetInput("Your Age");
age = Convert.ToInt32(input);
Console.WriteLine("Your Age is " + age);
input = InputUtilities.GetInput("Gas Mileage");
galMileage = Convert.ToDouble(input);
Console.Writeline("Your car's mileage is " + galMileage);
//Call method to terminate program
//The following displays the application information
public static void DisplayApplicationInformation()
Console.WriteLine("Welcome the Basic User Interface Program");
Console.WriteLine("CIS247, Week 1 Lab");
Console.WriteLine("Name: YOUR NAME");
Console.writeLine("This program accepts user input as a string, then makes the appropriate data conversion");
public static void DisplayDiver(string outputTitle)
Console.WriteLine("****************" + OutputTitle + "****************");
public static string GetInput(string inputType)
Console.WriteLine("Enter the " + inputType);
strInput = Console.ReadLine();
public static void TerminateApplication()
Console.WriteLine("Thank you for using the Basic User Interface program");
Console.WriteLine("Press any key to continue");