69.1k views
0 votes
Write a C++ Program using your phone through CopDroid/CPP for 105 and Codeblocks if you are using your laptop or PC that displays the following output and performs arithmetic operations of the possible formula computation. 50 points Name of the Employee: Minimum Wage Earner (Y/N) Annual Income Compensation: Basic Exemption: 50000.00 No. Dependents Dependent(s) Exemption Total Exemption -Other Details SSS Philhealth Pag-ibig Monthly Contribution Annual Contribution Annual Net Taxable income Annual Income Tax -Other Tax Books Prizes Total Additional Tax Use the Income Tax Bracket below for referencing. Amount of Net Taxable income Rate Over But Not Over P250,000 0% P250.000 P399,999 20% of the excess over P250,000 P400.000 P799,999 P30,000 + 25% of the excess over P400,000 P800.000 P1,999,999 P130,000 + 30% of the excess over P800,000 P2,000,000 P7,999,999 P490,000 + 32% of the excess over P2,000,000 P8,000,000 P2.410.000 + 35% of the excess over P8,000,000

User Sesi
by
8.1k points

1 Answer

3 votes

Final answer:

To write a C++ program that displays the mentioned output and performs arithmetic operations for the given formula computation, you need to include the necessary header files, declare variables, prompt for input, perform calculations, and display the output. C++ is a powerful programming language that allows you to perform complex calculations and manipulate data. By following the steps mentioned above and using the appropriate syntax and functions, you can create a C++ program that meets the given requirements.

Step-by-step explanation:

To write a C++ program that displays the mentioned output and performs arithmetic operations for the given formula computation, you can follow these steps:

  1. Start by including the necessary header files for input/output operations and mathematical functions.
  2. Declare the required variables to store the input values and intermediate results.
  3. Use the input/output functions to prompt the user for the necessary information, such as the employee's name, annual income, number of dependents, etc.
  4. Perform the required arithmetic operations to calculate the total exemption, monthly contribution, annual contribution, annual net taxable income, and annual income tax.
  5. Apply the income tax brackets to determine the applicable tax rate and calculate the additional tax.
  6. Display the calculated values and the final output as per the given format.

Here is a sample code snippet that demonstrates the basic structure of the C++ program:#include <iostream>

User Vikrant Kashyap
by
8.5k points