Posted by Josh on Saturday, May 28, 2011 at 12:28am.
I have this assignment due tonight in about 2 and a half hours. I am going to try to finish it the best that I can but I do not know if I will be able to. I really am stuck. I have no idea where to even start on this. Can somebody please help?!
• Read the following scenario:
You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is calculated by adding the base tax for that salary range and the product of percentage of excess and the amount of salary over the minimum salary for that range.
• Design a program that solves this problem.
• Generate a set of input test values.
• Perform a design walkthrough to verify your design
Axia College Material
Sequential and Selection Process Control Structure
In the following example, the second line of the table specifies that tax due on a salary of $2000.00 is $225.00 plus 16% of excess salary over $1500.00 (that is, 16% of $500.00). Therefore, the total tax is $225.00 + $80.00, or $305.00.
Salary Range in Dollars Base Tax in Dollars Percentage of Excess
1. 1 0.00-1,499.99 0.00 15 %
2. 2 1,500.00-2,999.99 225.00 16 %
3. 3 3,000.00-4,999.99 465.00 18 %
4. 4 5,000.00-7,999.99 825.00 20 %
5. 5 8,000.00-14,999.99 1425.00 25 %
Here is something we used on our last assignment but I am not sure if it applies to this one:
System-Level Requirements Example
Consider the Paint the Room program, in which you developed what are often called system-level requirements—the basis for all subsequent analysis and design steps. The following steps will take these system-level requirements and refine them into a detailed blueprint for the program.
Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.
The natural place to start is the system-level requirements you identified in the Input-Process-Output (IPO) chart. Determine how the processes work together: Once you have determined the top-level logic, you can then design each of the individual processes. It is this step-wise refinement process that allows you to conceptualize a vague problem into increasing levels of details in order to actually generate a working program. This point is important because the step-wise refinement pattern is used throughout the entire program development—each new piece of information is based on, and is a refinement of, the information uncovered in the previous step.
For this week’s CheckPoint, you will refine the IPO table into a complete design, as demonstrated on pp. 33 and 36 of Extended Prelude to Programming: Concepts and Design (2nd ed.). Refer also to the Input and Output Process Example in Appendix B to see how more detailed analysis and design relates to the previously constructed IPO chart.
The following information demonstrates all the items you need to develop for your programming assignments and for the final project.
1. Get user input
2. Find room area
3. Divide room area
4. Multiply gallons
5. Prompt for ounces
6. Display total
price (real: 0-100)
squareFeetPerGal (real: 0-1000)
width (real: 0-100)
length (real: 0-100)
height (real: 0-100)
total_cost (real: > 0)
Declare price as real
Declare squareFeetPerGal as real
Declare width as real
Declare length as real
Declare height as real
Declare totalArea as real
Declare gallonsNeeded as real
Declare outputPrompt as string
Declare totalCost as real
Get user input
Find room area
Divide room area
End Main Module
Input Data Module
Write, “What is the price per gallon of paint?”
Write, “How many square feet does each gallon cover?”
Write, “What is the height of the walls?”
Write, “What is the width of the walls?”
Write, “What is the length of the walls?”
End Input Data Module
Find Room Area Module
Declare sideArea as real
Declare frontBackArea as real
Declare ceilingArea as real
sideArea = 2*(length * height)
frontBackArea = 2*(width * height)
ceilingArea = width * length
totalArea = sideArea + frontBackArea + ceilingArea
End Find Room Area Module
Answer this Question
- History 108 (paper due tonight) - First of thank you to Mssue! Don't know how to...
- Information Technology - hi I have an Information Technology assignment to do ...
- math - 10. A house painter can finish a house in 6 hours. His partner can finish...
- Business - Assignment for week 5 Given the following information, draw the ...
- criminal justice - How would advances in criminal justice technology would ...
- anthropology - im needing help with an assignment that is due tonight by ...
- IT(information technology) - hi I have an IT assignment to do it is about a ...
- University of Phoenix - Class, this week your individual assignment is to write ...
- Philosophy - I need help with this proof for my philosophy class. This proof is ...
- Teachers Aide/Language and other Barriers - 14. As a teacher aide in a ...