What's new
Roleplay UK

Join the UK's biggest roleplay community on FiveM and experience endless new roleplay opportunities!

Guess the Language (Programming Edition)

Those 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
HTML? Im gonna go with HTML xD

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);
        }
    }
}
 

 
HTML? Im gonna go with HTML xD

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);
        }
    }
}
 
Hummm I Guess You Right About The Second Language xD and HTML Yup

 
function getPage(page) {
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("display").innerHTML = this.responseText;
}
};
xmlhttp.open("GET","getPage.php?page="+page,true);
xmlhttp.send();
}


What about this bois?

 
HTML? Im gonna go with HTML xD

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);
        }
    }
}
 
C#

function getPage(page) {
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("display").innerHTML = this.responseText;
}
};
xmlhttp.open("GET","getPage.php?page="+page,true);
xmlhttp.send();
}


What about this bois?
More Javascript

Next one:

Code:
package main
import "fmt"

func main() {
	fmt.Println("Hello o/")
}

 
Back
Top