Write a method named CustomerCreditLimit() that
accepts a double as a parameter and displays the value
as the amount of credit granted to a customer. Provide a
default value for the method so that if a program calls the
method without using an argument, the credit limit displays
$500. Write a console-based program with a Main()
method that proves the credit limit method works correctly
whether it is called with an argument or not. Save
the file as Credit.cs.
I am Lost! could anyone help
`
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double balance = 0.00;
double creditLimit = 500;
CustomerCreditLimit(balance, creditLimit);
Console.ReadLine();
}
public static double CustomerCreditLimit(double balance, double creditLimit)
{
//get and process input
Console.Write("Enter the customer current balance: ");
balance = Convert.ToDouble(Console.ReadLine());
if (balance <= 500)
{
Console.Write("{0:c} the amount of credit granted to a customer", balance);
}
if (balance > creditLimit) //test for overlimit
{
Console.WriteLine("{0:c} Credit limit exceeded!", balance);
}
return balance;
}
}
}
`