Jack Chapman
Well-known member
- Location
- England
HTML? Im gonna go with HTML xDThose People That Think They Know To Code xD
<!DOCTYPE html>
<html>
<Head>
<Body>
public class CustomMath {
public static int multiply(int a, string b) {
return a * b;
}
}
</Head>
</Body>
</html>
LoL Dont judge Me
namespace PropertyTax
{
class Program
{
const double ASSESSMENT_VALUE = 0.6;
const double PROPERTY_TAX = 0.0064;
static void Main(string[] args)
{
double propertyPrice = RequestPropertyPrice();
double assessmentValue = CalculateAssessmentValue(propertyPrice);
double propertyTax = CalculatePropertyTax(assessmentValue);
Console.WriteLine("Your assessment value is: £{0}", assessmentValue);
Console.WriteLine("Your property tax is: £{0}", propertyTax);
Console.ReadLine();
}
static double RequestPropertyPrice ()
{
Console.Write("What is the value of your property: £");
return Convert.ToDouble(Console.ReadLine());
}
static double CalculateAssessmentValue (double houseCost)
{
return (houseCost * ASSESSMENT_VALUE);
}
static double CalculatePropertyTax (double assessmentCost)
{
return (assessmentCost * PROPERTY_TAX);
}
}
}