Premium Essay

It210

In:

Submitted By braulston0919
Words 348
Pages 2
Associate Program Material
Appendix G

Sequential and Selection Process Control Structure

In the following example, the second line of the table specifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.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 %

Input Processes Output
First Name
Last Name
Salary 1. Get User Input

First Name
Last Name
Salary
Salary 2. Find Range Category Salary Range

Salary Range
Percentage of Excess
Base Tax 3. Find Base Tax and Percentage of Excess

Percentage Excess Total
Base Tax
Salary
Percentage Excess Total
Base Tax 4. Find Gross Salary Gross Salary

First Name
Last Name
Salary
Gross Salary 5. Display Gross Salary First Name
Last Name
Salary
Gross Salary

Main Module
Declare Name as string
Declare SalaryAmt as real
Declare Base as real
Declare Excess as real
Declare Salary as real
Declare ReRun as string

Call Input Data Module
Call Range Module
Call Salary1 Module
Call Salary2 Module
Call Salary3 Module
Call Salary4 Module
Call Salary5 Module
Call Output Module
End Main Module

Input Data Module
Write, “Insert Employee’s First Name”
Input FirstName

Write, “Insert Employee’s Last Name”
Input LastName
Write, “What is the employee’s salary?”
Input SalaryAmt
Call Range Module
End Input Data Module

Range Module
If SalaryAmt < 1,499.99
Then Call Salary1 Module

Else
If SalaryAmt < 2,999.99 AND SalaryAmt > 1,500.00
Then Call Salary2 Module
Else
If SalaryAmt < 4,999.99 AND SalaryAmt >

Similar Documents

Premium Essay

It210

...University of Phoenix Associates Program Material (revised by Albert Mink) Final Project Application-Level Requirements List Complete the following list of application-level requirements for the Metric Conversion program. The first requirement has already been entered for you. 1. The Metric Conversion Program will display a Main Menu to the user listing the available metric-to-U.S. measurement conversions available, along with an option to quit the program. 2. The Metric Conversion Program will confirm user entry is valid (1 to 5) or closes if entry is 6. 3. If entry 1 to 5 is entered the Metric Conversion Program will prompt for entry of metric measurement. 4. The Metric Conversion Program will verify the metric measurement is valid (0.0 to 10000.0) or prompt for valid entry. 5. The Metric Conversion Program will convert the entered metric measurement to corresponding amount using conversion formula. 6. The Metric Conversion Program displays converted amount. Input-Process-Output Chart Complete the following Input-Process-Output chart for the Metric Conversion program. The first process has already been entered for you. |Input |Process |Output | | |Display Main Menu |Main Menu | |Measurement Section ...

Words: 1502 - Pages: 7

Premium Essay

Hierarchy Chart It210

...Axia College Material Appendix H Ray Greene IT210 Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application above by typing into the textboxes below. Part II Axia College Material Appendix I Ray Greene IT210 Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment above by typing into the textboxes below. Control Flow Diagram—Main Control [pic] Control Flow Diagram—Display Menu | | |[pic] | Control Flow Diagram—Get_Int_Value | | |[pic] | Control Flow Diagram—Convert Currency | | |[pic] | Control Flow Diagram—Display_Results |[pic]...

Words: 401 - Pages: 2

Premium Essay

It210 Currency Test

...Currency Conversion Test Cases Display Menu Valid Menu Selection | Inputs | ExpectedOutput | Australian | Menu Selection = 1 | Do you want to continue with the conversion Yes or No?Currency_Type = 1 | | | | Jamaican Dollar (JMD) | Menu Selection = 1 | The selected currency will be converted to U.S. Dollars.foreignCurrency =1 | Australian Dollar (AUD) | Menu Selection – 2 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 2 | European (EUR) | Menu Selection = 3 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 3 | Canadian (CAN) | Menu Selection = 4 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 4 | French Franc (FRF) | Menu Selection = 5 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 5 | End Program | Menu Selection = 0 | Program ends | Invalid Selection | Any other number | Please enter the number corresponding to the desired currency type: | Get International Values Valid International Values | Input | Expected Output | 100 AUD | 100.00 | 96.7457 USD | | | | 250 JMD | 250.00 | 21362.5 USD originalCurrency = 21362.5 | 250 AUD | 250.00 | 239.1 USDoriginalCurrency = 239.1 | 250 EUR | 250.00 | 179.775 USDoriginalCurrency = 179.775 | 250 CAD | 250.00 | 251 USDoriginalCurrency = 251 | 250 FRF | 250.00 | 1510.59 USDoriginalCurrency = 1510.59 | Convert Currency Valid International Currency | Input | Expected Output | |...

Words: 483 - Pages: 2

Premium Essay

It210 Week 6 Assignment

...Currency Conversion Test Cases Display Menu Valid Menu Selection or Errors | Inputs | Expected Output or Message | Canadian | Menu Selection = 1 | Do you want to continue with the conversion Yes or No?Currency_Type = 1 | Costa Rica | Menu Selection=1 | Do you wish to continue with this conversion yes or no?Currency Type= 1 | Australian | Menu Selection= 2 | Do you wish to continue with this conversion yes or no?Currency Type= 2 | Europe | Menu Selection= 3 | Do you wish to continue with this conversion yes or no?Currency Type= 3 | Singapore | Menu Selection= 4 | Do you wish to continue with this conversion yes or no?Currency Type= 4 | Colombian | Menu Selection= 5 | Do you wish to continue with this conversion yes or no?Currency Type= 5 | Exit | Menu Selection= 6 | Are you sure you would like to exit the program? | India | Menu Selection= 1 | The Country entered is invalid | Jupiter | Menu Selection= 2 | The Country entered is invalid | Peru | Menu Selection= 3 | The Country entered is invalid | Get International Values Valid International Values | Input | Expected Output | 100 CAD | 100.00 | International Value = 100 | 10000 CRC | 10000.00 | International Value=10000 | 25 AUD | 25.00 | International Value=25 | 2000 EUR | 2000.00 | International Value=2000 | 75 SGD | 75.00 | International Value= 75 | 6000 COP | 6000.00 | International Value=6000 | 2 CRC | 20000.00 | International Value=20000 | 60 AUD | 60.00 | International...

Words: 704 - Pages: 3

Premium Essay

It210 Week 4 Sunday

...Wk 4 Sunday Test Day 7 Daniel [Danny] R. Lehrman CRT205 2/10/13 Dr. Laurene Madern FOX News 2/8/13 8:00 PM-9:00 PM. MSNBC news 2/8/13 10:00 PM to 10:45 PM. Note: I watched at my neighbor’s house. We only buy TV during the football season, and we only get the basic package so I can buy the NFL package. Basic Dish TV does not have FOX or MSNBC. I focused to focus on these two segments from each channel. On FOX News, The Bill O’Reilly Factor segment, the discussion of gun rights laws is clearly slanted toward legal ownership of guns. I don’t enjoy hate type of humor or information. Bill attempts to substantiate the Conservative parties views toward gun control with the standard NRA-Conservative argument that Americans should bear the right to own arms, arms of any type. Not limited to sporting guns or collectables. His comments are sarcastic and confusing because they are vague, with no clear and factual point made. The fact is that Bill O’Reilly said nothing new as far as conservative views and gun rights are concerned. He continued to justify his argument by saying “guns don’t kill people, people kill people”. His argument is specious in design because it is a rationalization. People, in fact, use guns. Bill went as far as mentioning Hitler, and Nazi Germany’s very strict gun control laws. German soldiers took the guns from the Jewish people, and then turned on a defenseless people. Gun laws said to be made with “good” intentions that took guns out of the...

Words: 800 - Pages: 4

Premium Essay

It210 Wk3Hw3 Sequentialandselectionprocessingcontrolstructure 53013

...Associate Program Material Appendix G Sequential and Selection Process Control Structure In the following example, the second line of the table specifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.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 |0.00-1,499.99 |0.00 |15 % | |2 |1,500.00-2,999.99 |225.00 |16 % | |3 |3,000.00-4,999.99 |465.00 |18 % | |4 |5,000.00-7,999.99 |825.00 |20 % | |5 |8,000.00-14,999.99 |1425.00 |25 % | Problem Analysis:   Process:   1. Display welcome message with program title 2. Get the salary 3. Calculate the taxes 4. Output the results Input: Salary (real: Salary) Output: Total taxes (real: Taxes) Salary Input-Process-Output Chart |Input |Processes...

Words: 259 - Pages: 2

Free Essay

It210 Checkpoint Week 2

...The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item and its weight in pounds and ounces. Then it should determine and display the unit price (the price per ounce) of that item and the total cost of the amount purchased. You will need the following variables: ItemName (a String) Pounds (a Float) Ounces (a Float) PoundPrice (a Float) TotalPrice (a Float) UnitPrice (a Float) You will need the following formulas: UnitPrice = PoundPrice/16 TotalPrice = PoundPrice*(Pounds + Ounces/16) Analysis Process:   1. Display a program title.   2. Prompt for the item name.   3. Prompt for the price of the item.   4. Prompt for the weight in pounds.   5. Prompt for ounces.   6. Convert pounds to ounces and add it to the input ounces.   7. Divide total price by ounces.   8. Display the price per ounce. Input: Item Name (string: item Name) Item Price (real: price) Item Weight in pounds (integer: pounds) Fractional ounces (integer: ounces) Output: Unit price (real: unit Price) Design Main Module Declare item Name as String Declare price as real Declare pounds in integer Declare ounces as integer Declare unit Price as real Write Unit Price Program Write This program computes the unit price for an item Call Input Data Module Call Perform Calculations Module Call Output Results Module End Program End Main Module Input...

Words: 333 - Pages: 2

Free Essay

It210 Week 2 Appendix F

...Associate Program Material Appendix F Application-Level Requirements Application-Level Requirements List 1. The program will prompt the user for data input of type and amount of currency to be converted. 2. The program will prompt the user to input the type of the destination currency. 3. The program will locate and display the current currency rates for types listed by the user. 4. The program will perform calculations to convert value from one type of currency to another type of currency indicated by the user. 5. The program will display the calculated total amount of the currency desired using the total of the original currency. 6. The program will prompt the user to indicate if another conversion is desired. Input-Process-Output Chart Complete the following input-process-output chart for the application using a structured programming approach. |Input |Process |Output | |Origin currency |Get user input. |Origin currency | |Origin currency amount | |Origin currency amount | |Destination currency |Get user input. |Destination currency | |Value of Destination...

Words: 262 - Pages: 2

Free Essay

Corruption

...2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 4 6 7 12 15 17 18 20 21 23 28 Supp. EC200 Supp. FN300 Supp. FN301 Discontinue: 3 failed courses QA14.1 GPA Repeat 1.6 1.625 QA14.2 semester 4 2 3.6 2.5 3.7 3.5 2.3 3.3 2.8 4.6 Rpt. EC200 Discontinue: GPA 0 QA14.2 2.3 Supp. AC300 Supp. 2.2 AC305 3 8 4 10 5 8 6 6 7 6 6 7 C B C C Abs D D C D C B+ C B A B+ A B C B+ B C C C B A Abs Abs B+ Abs B C B A A C B B A B+ C B B C C B C A B C B C B+ A A B+ B B+ C B+ A B B+ B+ C B A B C B C A B+ B 2010 FOCB 2010 FOCB 2010 FOCB 2010 FOCB 29 30 32 33 Discontinue 8 6 7 6 Abs Abs Abs Abs E Abs Abs Abs C D C B B D C C C C B B+ B B B C B B B Page 1 PS302 CL100 IT200 IT210 IT311 IT312 IT315 ST. JOHN'S UNIVERSITY OF TANZANIA FACULTY OF COMMERCE AND BUSINESS STUDIES (FOCB) THIRD YEAR PROVISIONAL RESULTS - SEM1 2012/2013 - SECOND DRAFT- APPEAL INCLUSIVE 2010 FOCB 2010...

Words: 2275 - Pages: 10