Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can anyone help me with the coding. My professor is using Visual Studio for this

ID: 3798137 • Letter: C

Question

Can anyone help me with the coding. My professor is using Visual Studio for this coding class. We have been using HTML coding.

EQUATIONS AND CONDITIONALS Create a web app for weight conversion: from Pounds to Kilograms and from Kilograms to Pounds. Assume 1 Kilogram = 2.2 pounds. Do NOT do other conversions (like dollars to pounds). I only want to see Pounds Kilogram conversions. Do this problem only. Name this app conversion.html EQUATIONS AND LOOPS Create a web app to calculate present value. Do this problem only. Do not do other equations. You must use a loop and not the built-in power function. Name this app presentvalue.html

Explanation / Answer

conversion.html:

<htm>

<head>

<title>Pound to kilogram convertr</title>

</head>

<style>

h3 {

font-family:arial;

};

</style>

<body>

<script>

var pound = parseInt(prompt("How Many Pound(s):"));

var solve_kilogram=(pound * 0.453592);

document.write("<h3>Pound To kilogran converter</h3>");

document.write("<font face='arial' size='4'>');

document.write("The equivalent of" +pound + " pound(s)");

document.write("is" + solve_kilogram.toFixed(2) + " kilogram(s).</font><br>");

doucment.write("<h3>end of program</h3>");

</script>

</body>

</html>

presentvalue.html:

<html>

<head>

<meta charset="utf-8'>

<title>Integer Power</title>

<script type="text/javascript">o

functiion intPow(){

var base = parseFloat(document.getElementById("baseBox").value);

var exp = parseFloat(document.getElementById("expBox").value);

var output="";

var i = 0;

for(i=1; i<exp; i++) {

output = Math.pow(base,exp);

}

document.getElementById("outputDiv").innerHTML = output;

}

</script>

</head>

<body>

<h1>Find the power of <i>Base</i> by entering an interger in the <i>base</i>

box, and an integer in the <i>exponent </i> box </h1>Base:

<input type= "text" id="baseBox" size="15">Exponents:

<input type = "text" id = "expBox" size = "15">

<button type = "button">Compute Exponents</button>

<dic id = "outputDiv"></div>

</body>

</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote