Make a form that gets two values from the user. You may use a text box for that. one for number of hours working and one for an hourly rate. (should be an HTML form) then Write a PHP function that gets two variables the number of hours worked and hourly wage. Calculate the wage and return it Do the function call and print a message saying that " ...... is your wage" submit your PHP file and screenshot of your output
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Make a form that gets two values from the user. You may use a text box for that. one for number of hours working and one for an hourly rate. (should be an HTML form) then Write a PHP function that gets two variables the number of hours worked and hourly wage. Calculate the wage and return it Do the function call and print a message saying that " ...... is your wage" submit your PHP file and screenshot of your output
![](/static/compass_v2/shared-icons/check-mark.png)
Here's the HTML form code:
CODE in HTML:
<!DOCTYPE html>
<html>
<head>
<title>Wage Calculator</title>
</head>
<body>
<form method="post" action="wage_calculator.php">
<label for="hours">Number of hours worked:</label>
<input type="text" id="hours" name="hours"><br><br>
<label for="rate">Hourly rate:</label>
<input type="text" id="rate" name="rate"><br><br>
<input type="submit" value="Calculate Wage">
</form>
</body>
</html>
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)