IT MUST USE PHP AND HTML IT CANT BE JAVASCRIPT IT HAS TO BE PHP AND HTML Using PHP and HTML 5, create a webpage that calculates the monthly payment for a car loan. The user enters the price of the car (P), down payment (D), Annual Percentage Rate (R), and the number of years (N). Compute the monthly payment (M) using the following formula and display it: Let i = R / 1200 and n = N * 12; M = ((P - D) * i * (1 + i)n) / ((1 + i)n - 1)
Answer:
Code:
<html>
<head>
<title>Monthly Payment Calculator</title>
</head>
<body>
<form method="post">
<label>Enter the price of the
car(p):</label>
<input type="number" id="price"
name="price"><br><br>
<label>Enter the down payment(d):</label>
<input type="number" name="dp"><br><br>
<label>Enter the annual percentage(r):</label>
<input type="number"
name="percentage"><br><br>
<label>Enter the no of years(n):</label>
<input type="number" name="years"><br><br>
<input type="submit" name="test" id="test" value="Calculate"
/><br/>
</form>
<?php
function testfun()
{
$P=$_POST["price"];
$D=$_POST["dp"];
$R=$_POST["percentage"];
$N=$_POST["years"];
$I=$R/1200;
$k=$N*12;
$M = (($P - $D) * $I * (1 + $I)*$k) / ((1 + $I)*$k - 1);
echo "<p> Monthly payment is :".$M."</p>";
}
if(array_key_exists('test',$_POST)){
testfun();
}
?>
</body>
</html>
Output:

Result after calculation:

IT MUST USE PHP AND HTML IT CANT BE JAVASCRIPT IT HAS TO BE PHP AND...
Write a python program for the below question? Car Loan If A dollars is borrowed at r% interest compounded monthly to purchase a car with monthly payments for n years, then the monthly payment is given by the formula monthly payment = i / 1 - (1 + i)-12n . A where i = r/1200. Write a program that calculates the monthly payment after the user gives the amount of the loan, the interest rate, and the number of years.
using Matlab program: Create a loan payment program that can be used for any loan amount such as a home or car loan. The program should ask the user for the input values below, compute the monthly payment, then compute the monthly balance. Display the balance in a table Month Balance 1 $ ##.## 2 $ ##.## 3 $ ##.## . . . etc Use the formula PMT=P*(r(1+r)^n)/((1+r)^n-1) PMT = the monthly payment. P = the principal r = the interest rate per month, which...
Create a webpage (the last picture has three potential offers
not just 2). Use html, JavaScript and CSS where needed. All
information needed is supplied by the picture.
Summary Create a dynamic web page that allows users to compare different financing offers for an automobile loan. Purchasers are often presented with different financing offers, and determining the best offer can be difficult. In particular, dealers often have promotions that offer either a lower interest rate or a cash incentive (sometimes...
Notepad++ JavaScript Create an HTML file, using XHTML. Add JavaScript scripts to the file. Create 3 variables to hold the famous quote (NOTHING BUT THE QUOTE). My code so far. var firstQuote = "Give me a museum and I'll fill it." // I am stuck on the document.write part. How can i display it? document.write("1. Pablo Picasso says: "+firstQuote");
Solve using Raptor. Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the annual percentage rate of interest, and the number of monthly payments. The program should allow Kim to input the loan amount, interest rate, and how many payments she wants to make. It should then compute and display the monthly payment. You will need the following variables: ...
Create a PHP-backed webpage that ask for a number and calculate is square 10 times. Hint 1: <html> <body> <h1>Iteration Program</h1> Today's date: <?php echo date("1 F d, Y"); ?> <h3>Enter a Value to Iterate</h3> <form action="results.php",method=post> <input type="text" name="data"> <p/> <input type="submit" value="Show Results"> </form> </body> </html> Hint 2: <html> <body> <h1>Iteration Results</h1> <b>Here are 10 iterations of the formula:<br/> y=x<sup>2</sup> </b> <p/> <!-- PHP Calculations start here! --> <?php $num = $_POST['data']; //Write your code Here! ?> </body>...
Create an HTML form that takes these inputs: Number of rows, and number of columns. This form will submit to a PHP page. Create that page that will accept input from the HTML form and generates the table from the user's input. I already have the portion that generates the table based on user input by using Javascript in an HTML page, I just need to know how to generate the table using a PHP page instead. Here's the code...
LANGUAGE JAVASCRIPT, PHP
Need help with PHP and ajax code. The user needs to login but, I
keep getting an error that I coded "Wrong username and password!"
***PLEASE DONT GIVE ME A NEW CODE THAT IS NOWHERE NEAR
THE CODE I SUBMITTED***** PLEASE LOOK AT THE CODE AND SEE ANY
ISSUES
login.html
<!DOCTYPE html>
<html>
<head>
<title>login popup</title>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style type="text/css">
body {
background-color: white;
}
</style>
</head>
<body>
<center>
<h1 style="text-align: center;"> Login </h1>
<form>
Login
ID:...
already created table now need php and html
Write SQL statements to delete the above table. 3. PHP with html Write the html code to allow a user to enter a SUP_ID from the sunnysdiner database available on the same scrver. Then write the separate file with PHP script should display all the supplier's information from the supplier table with proper error handling. html file: a) use sunnysdiner; CREATE TABLE supplier ( food_item varchar(30) not null primary ley, SUP_ID INT,...
JAVA You have been scrimping and saving and are now looking to buy a new car. You decided you want to buy a Honda Civic because of its good gas mileage, good trade in value and available features. Now you get to choose a package of options. Base price: $17,950 The car comes with these different option packages: Option ‘P’ includes: auto transmission, power windows and locks, stereo sound system. Cost: base + 1200 Option ‘L’ includes: all of the...