I am having trouble with using an int and a double in an equation.
public static void TaxAmount(out double convertprice,out int nondecimaltax)
{
string inputPrice;
string inputTaxrate;
Console.WriteLine("Please input the Price");
inputPrice=Console.ReadLine();
convertprice=Convert.ToDouble(inputPrice);
Console.WriteLine("Please input the Taxrate");
inputTaxrate=Console.ReadLine();
nondecimaltax=Convert.ToInt32(inputTaxrate);
}
public static int CalculateTaxAmount(double convertprice,int nondecimaltax)
{
double nondecimalanswer;
nondecimalanswer=convertprice*nondecimaltax;
return nondecimalanswer;
}
public static void TaxAmount(out double convertprice,out int nondecimaltax)
{
string inputPrice;
string inputTaxrate;
Console.WriteLine("Please input the Price");
inputPrice=Console.ReadLine();
convertprice=Convert.ToDouble(inputPrice);
Console.WriteLine("Please input the Taxrate");
inputTaxrate=Console.ReadLine();
nondecimaltax=Convert.ToInt32(inputTaxrate);
}
public static int CalculateTaxAmount(double convertprice,int nondecimaltax)
{
double nondecimalanswer;
nondecimalanswer=convertprice*nondecimaltax;
return nondecimalanswer;
}