Program - Tax Calculations
CIS162AC - C++
Assignment Goal:
Methods are units of code that perform a specific task. Breaking a program down into small individual tasks allows the program to concentrate on the specific task. It also makes testing and debugging easier as they can be tested and debugged individually. In developing methods, you must ask two questions: What does the method need to complete its task and what is the method to return?
IPO (Input – Process – Output) diagrams are a great tool for developing methods. An IPO diagram consists of three columns: Input- the parameters you are sending to the method, Process – the pseudocode to complete the task, and Output – the value to be returned, or void if the method does not return a value.
Assignment Specifications:
Your programming project requires you to create methods to calculate taxes. For this assignment, you will create a program that will calculate two taxes. They are Medicare Withholding and State Withholding. Determine what data is needed for each of these methods. Write a program that prompts the user for the basic data, and calculate the values, and display the results. All functions, data entry, calculations, and output should be in methods. State withholding is a percent of gross pay. The state percentage will vary from one employee to another.
Deliverables (what you are to submit):
1.A planning document using pseudocode, IPO diagram or flowchart.
2.A mock screen showing the output of your program.
3.A set of test data with expected results.