Create a two-part form that calculates and displays the amount of a Salesperson’s , salary based on the amount of sales and the commision rate that you input. Use an HTML document named salary.html as a web form with 2 text boxes-one for the amount of sales and one for the commission rate rate. Use a PHP document name salary.php as the form handler. Be sure to verify and validate the submitted form data and provide appropriate error messages for invalid values.
Answer:
Html code :
<html >
<head>
<title>Paycheck Calculator</title>
</head>
<body>
<h1>Paycheck Calculator</h1>
<hr />
<form method="get" action="paycheck.php">
<p>Hours worked:
<input type="text" name="hours" id="hours" />
</p>
<p>Employee wage:
<input type="text" name="wage" id="wage" /><br /><br />
<input type="submit" />
</p>
</form>
</body>
</html>
-----------------------------------------------------------------------------------------------------
Php code
<?php
$hours = $_GET["hours"];
$wages = $_GET["wage"];
if (is_numeric ($hours) and is_numeric($wages))
{
if ($hours > 60 ) {
echo "Worked more than 60 hours";
}
else if ($hours>0 and $wages>0)
{
$overtime = max($hours - 40, 0);
$pay += $overtime * $wages * 1.5;
$pay += ($hours - $overtime) * $wages;
echo "Hours Worked: " . $hours . "<br>";
echo "Pay rate (per hour): $" . number_format($wages, 2) . "<br>";
echo "Overtime Hours: " . $overtime . "<br>";
echo "Your Paycheck is: $" . number_format($pay, 2) . "<br>";
}
else
{
echo "incorrect input: wages or hours worked should be greater than zero(0)";
}
}
else
{
echo "hours worked or wage rate should be numeric ";
}
?>
Create a two-part form that calculates and displays the amount of a Salesperson’s , salary based...
PHP Document Create a two-part form that calculates an employee's weekly gross salary, based on the number of hours worked and an hourly wage that you choose. Use an an php document named Paycheck.php as a Web form with two text boxes—one for the number of hours worked and one for the hourly wage. Use a PHP document named display_results.php as the form handler. Compute any hours over 40 as time-and-a-half. Be sure to verify and validate the submitted form...
Project 9-2: Account Balance Calculator Create an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account. --->Console Welcome to the Account application Starting Balances Checking: $1,000.00 Savings: $1,000.00 Enter the transactions for the month Withdrawal or deposit? (w/d): w Checking or savings? (c/s): c Amount?: 500 Continue? (y/n): y Withdrawal or deposit? (w/d): d Checking or savings? (c/s): s Amount?: 200 Continue? (y/n): n Monthly Payments and Fees Checking fee: $1.00 Savings...
Project 2 Description Create a Visual C# project that when an employee's biweekly sales amount is entered and the Calculate button is pressed, the gross pay, deductions, and net pay will be displayed. Each employee will receive a base pay of $1200 plus a sales commission of 8% of sales. Once the net pay has been calculated, display the budget amount for each category listed below based on the percentages given. base pay = $1200; use a named...
PLEASE USE VISUAL BASIC* BY VISUAL STUDIO.
Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...
Java
Problem 2: Employee (10 points) (Software Design) Create an abstract class that represents an Employee and contains abstract method payment. Create concrete classes: SalaryEmployee, CommissionEmployee, HourlyEmployee which extend the Employee class and implements that abstract method. A Salary Employee has a salary, a Commision Employee has a commission rate and total sales, and Hourly Employee as an hourly rate and hours worked Software Architecture: The Employee class is the abstract super class and must be instantiated by one of...
URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to download the uncompressed latest version of jQuery Copy the jQuery.x.x.x.js file in the folder and specified as source file. Task 2: Download and install HTML-Kit 1. Navigate to htmlkit.com. 2. Click Download HTML-Kit 292. After it downloads, launch HKSetup.exe. Choose Full installation (the default) Uncheck Yes, download and install HTML-Kit Tools Trial. 6. Click Next>Finish. Task 3: Creating a Simple jQuery Application Launch HTML-Kit....
JAVASCRIPT Create a simple web page that contains a JavaScript form that will allow the user to answer 7 trivia questions. Your trivia game should contain: 2 text boxes 2 select dropdowns 2 multiple choice questions (using radio buttons, 4 options min) 1 choose-all-that-apply (checkboxes, 4 options min, one answer should be "None of the above"). No part-points for semi-correct answers. The questions can cover any topic you wish - but please keep it professional and easy enough that the...
Form Processing HTML
One of the most ubiquitous uses of JavaScript is validating form
data on the client side before it is submitted to the server. It is
done everywhere because it is fast and it gives you a great deal of
flexibility in how you handle errors insofar as the GUI is
concerned.
Attached is an image of some code I wrote (so Blackboard can't
mess it up). Some things to notice that will help you with the
lab....
Tip Calculator App & Order Using NetBeans create a new JavaFX project with two classes TipCalculator (the JavaFX class) and Order Create the Tip Calculator as follows: Start with an Order class with two instance variables, item a String and price a double; include two constructors, a no-parameter constructor that passes default values empty String and zero (0) to the second constructor which then calls the set methods for item and price; the set method for price validates that price...
For this week's assignment , please create an application following directions in the attached document.(windows form application) Create a base class named Account and derived classes named SavingsAccount and CheckingAccount that inherit from class Account. Base class Account should include one private instance variable of type decimal to represent the account balance. The class should provide a constructor that receives an initial balance and uses it to initialize the instance variable with a public property. The property should validate the...