Computer Programming

Activity

  1. Draw a flowchart to input the employee number, employee name, rate per hour, number of hours worked. Compute and display the basic salary by multiplying the rate per hour and number of hours worked. Compute and display also the SSS deduction which is 20% of the basic salary, Pag-Ibig deduction amounting to 200 pesos, PhilHealth deduction which is 5% of the basic salary, tax deduction which is 16% of the basic salary. Compute and display also the total deductions by adding all deductions (SSS, Pag-Ibig, PhilHealth, and tax). Compute the net pay by subtracting total deductions from basic salary.
  1. Draw a flowchart to input the sustained winds in km per hour and determine the category of typhoon based on the given table below:
CategorySustained Winds
Tropical Depression< 62km/h
Tropical Storm62-88 km/h
Severe Tropical Storm89-117 km/h
Typhoon118-220 km/h
Super Typhoon> 220km/h
  1. Draw a flowchart to input the price of the product and the quantity. Compute and display the sub total by multiplying the price and the quantity. Calculate the tax which is 12% of sub total and compute the total sales by adding subtotal and tax. Ask the user to input the amount tender, if the amount tender is greater than the total sales, compute the change and display the message “Your change is ” + change, if the amount tend is less than the total sales, display the message “Insufficient amount” and if the amount tender is equal to the total sales, display the message “Thank you for giving an exact amount.”
  1. Draw a flowchart to input three numbers a, b, and c. Output the largest values between a, b, and c.
  1. Draw a flowchart and input an numeric grade and output the corresponding letter grade using the table below.
Numeric GradeLetter Grade
95 - 100A
90 - 95B
85 - 90C
80 - 85D
75 - 80E
below 75F

Performance Task

Draw a flowchart detailing the annual income of an employee.
Compute and display the tax based on the given table below.