Reference no: EM13945571
I am asked to generate a set of INPUT TEST VALUES. Is that included into this control structure, or do I have to create a whole different set of variables?
(if you have to create an extended set of variables please return posting so I can add more credits.)
Declared Variables
Input: salary in real
Output: tax in real
Other: baseTax in real, minimum in real, Excess in real
Control Structure: if-then-else (dual alternative)
Method Taxation:
Begin
If salary is negative exit with error
If salary <= 1499.99 then
Minimum = 0
baseTax = 0
Excess = 0.15
tax = calculateTax(minimum, baseTax, Excess, salary)
Else If salary <= 2999.99 then
Minimum = 1500
baseTax = 225
Excess = 0.16
tax = calculateTax(minimum, baseTax, Excess, salary)
Else If salary <= 4999.99 then
Minimum = 3000
baseTax = 465
Excess = 0.18
tax = calculateTax(minimum, baseTax, Excess, salary)
Else If salary <= 7999.99 then
Minimum = 5000
baseTax = 825
Excess = 0.20
tax = calculateTax(minimum, baseTax, Excess, salary)
Else If salary <= 14999.99 then
Minimum = 8000
baseTax = 1425
Excess = 0.25
tax = calculateTax(minimum, baseTax, Excess, salary)
showTax()
End Taxation
Subroutine calculateTax:
calculateTax(baseTax, salary)
Begin
Tax = baseTax + (salary - minimum) * Excess
Return Tax
End calculateTax
Subroutine showTax:
showTax()
Begin
Print "The Tax amount is ", tax
End
What would you estimate the scrap rate
: What would you estimate the scrap rate to be using a 6-month moving average?
|
How do i created the pseudocode
: Using the UML diagram and variable list , create Pseudocode for the program.
|
State intelligently whether you think
: what musical "concept" is illustrated by the selection (e.g. musical idea, ensemble, solo performer, variation, etc.), and state intelligently whether you think the selection was effective in doing so
|
Governing equations of motion for a two degree
: The purpose of this project is to derive the governing equations of motion for a two degree of freedom (planar) gantry-type robot that is commonly called an H-Bot (Fig. 1).
|
Create a whole different set of variables
: I am asked to generate a set of INPUT TEST VALUES. Is that included into this control structure, or do I have to create a whole different set of variables?
|
Without assuming anything about the distribution
: Without assuming anything about the distribution of the number of hours community college students study per week, at most what percentage of the students study less than 3.7 hours or more than 19.7 hours per week?
|
Scholarly journals for your field or specialization
: For this assignment you will develop a short literature review on the topic (Distance Education and Internet learning) you chose in the first discussion in Unit 2 (See discussion below).
|
What is the effect of parenting
: What is the effect of parenting on some of the parents in the unit thus far? Consider the effect in "I Stand Here Ironing" and "The Egg" and explain your answer.
|
Provide the analysis and pseudo code only
: Display the contents of the file GRADES created in Problem 1. Each student's record should appear on a separate line and include the total score (the sum of the three tests) for that student.
|