Trent University Create a Program Code C++ Question
Description
Create a program that will compute the taxes owed from the table above. This assignment assumes Single filers.
Prompt for the taxable income for a double value and an integer value.
Create a function template as described in section 16.2 and use the template to create methods that calculates the taxes.
- Display the tax rate found for the reported taxable income (from Column 1)
- Display the taxes owed for each of the 2 variable types entered. The resulting taxes need to be the same data type as the given income.
- Be sure to include the upper and lower range values in the calculations. I.E – Be sure that $10275 can be calculated and not bypassed. Also, using #include <iomanip> and issuing cout << fixed << setprecision(2); will help with the double numeric displays.
- Deliverable is a working CPP program.
The C/C++ Programming assignments will have points deducted for the following:Obviously not using a source code formatter.Using ‘n’ or endl; when coding for prompts. A displayed message should stay on the same line for input.Having no other comments in the code.Displays without proper spacing.The balance is1000.00.Prompts without a leading space or symbol for the input. EnterNameJoe // Bad Enter Name :Joe // BetterDeclaring variables or constants that are never used.Including the Visual Studio auto generated comments that explain how to run a program.Using non-descriptive variable or constant names – i.e. int a, double x.An exception is allows for loop counters. However, this is still not good form.Not using proper naming conventions for variables and constants.Not using code blocks ” { } ” for all IF / ELSE/ ELSE IF and LOOP statements.Using 0 for false or 1 for true. Always use true and false for conditional statements.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."