MACHINE PROBLEMS #2
1.
Create a C++ program that would input the following data about a merchandise:
Product
Number, Item Description, Original Price, Estimated Years of used of a Merchandise,
Salvage Value of Merchandise. Compute the Depreciation and Rate of Depreciation of
the Merchandise using the Straight Line Method.
Depreciation = (Original Price
–
Salvage Value) / Year of Service
Rate of Depreciation = Depreciation / Original Price
Note: The Rate of Depreciation should be converted to percent equivalent.
2.
Create a C++ program that would input the following data: Employee Number, Employee LastName, Employee FirstName, Rate per hour, Number of Hours Worked. Compute
and ouput the Gross Pay, SSS Deduction, Tax Withhold, Total Deduction, Net Pay
Gross Pay = No. of hrs worked * rate per hour.
SSS Deduction = 5% of Gross Pay
Tax Withhold = 10% of Gross
Pay
Total Deduction = SSS Deduction + Tax Withhold
Net Pay = Gross Pay
–
Total Deductions
3.
Write a C++ program that would input Employee Name, Rate per hour, No. of hours worked and will
compute the daily wage of an employee. If the number of hours worked
exceeds eight hours add 30% to each excess hours as overtime rate.
Formula:
Daily Wage = Rate per hour * No. of hours worked + OT pay
1 answer
hourly
wage
,
total regular hours
and
total overtime hours
and displays an employee’s
total weekly
pay