



Prob.) Write a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is compute as:
Salary = hours worked * hourly rate
Bonuses are given:
No. of hours > 45 Bonus of 500 pesos
No. of hours > 40 and <=45 Bonus of 250 pesos
No. of hours > 35 and <= 45 Bonus of 150 pesos
Display the basic salary, bonus and the total salary (basic salary + bonus) for the week.
Arithmetic-assignment operators perform an arithmetic operation on the variable at the same time as assigning a new value. For this PHP exercise, write a script to reproduce the output below. Manipulate only one variable using no simple arithmetic operators to produce the values given in the statements.
Hint: In the script each statement ends with "Value is now $variable."
Value is now 8.
Add 2. Value is now 10.
Subtract 4. Value is now 6.
Multiply by 5. Value is now 30.
Divide by 3. Value is now 10.
Increment value by one. Value is now 11.
Decrement value by one. Value is now 10.
BOOKKEEPING AND ACCOUNTING PROBLEMS
Questions 1 - 3: The table shown below has positive and negative numbers entered in the rows and columns. Use this table to answer questions 1 through 3.
| 582.76 | 321.54 | -439.07 |
| 159.35 | -647.28 | -271.99 |
| 467.15 | 722.63 | -951.63 |
Question 1. The total of the second column is:
Question 2. The total of the first row is:
Question 3. The total of the third column is:
Questions 4 - 6: The table below indicates the gross wages, insurance payment and net pay for each of three employees. Use this table to answer questions 4 through 6.
| Employee Name | Gross Wages | Insurance Payment | Net Pay |
| Chris Taylor | $840.00 | $50.00 | $714.00 |
| Pat Jones | $1445.00 | $176.50 | $1068.50 |
| Peter Spence | $950.00 | $95.00 | $783.00 |
Question 4. What percentage of gross wages from Peter Spence’s check is being paid for insurance?
Question 5. What percentage of gross wages is Chris Taylor receiving as net pay?
Question 6. What would 12 percent of Pat Jones’ gross wages be?