- Review the customer requirements and IPO found below:
The customer needs to determine what the shipping costs will be for a package. The shipping cost is determined by weight. Once the weight is entered the
· personal message (i.e., not just the fee). · Display a message for end of program and programmer credits · Display a message with customer information (customer name and account number)
|
- Open Flowgorithm and save with the required naming conventions in the “Lab Task Checklist” and remember to enter your Program Attributes.
- Create the
algorithm using Flowgorithm to meet the customer requirements.- Display a welcome message and the purpose of the program
- Reserve Memory Locations (Declare) - Use as short and meaningful names
- Variables - Declare variables close to where they will be used
- Use the correct naming conventions (found in ROE)
- Named constants - Declare named constants at the start of the program
- Use the correct naming conventions (found in ROE)
- Use named constants for each of the different rates. Once rate is determined set the rate to that value. Example: rate = RATE1
- Make sure you are using the correct data type
- Variables - Declare variables close to where they will be used
- Add Decision Structures as needed to meet customer requirements.
- Use prompts to describe required input before asking for input
- The output must clearly delineate what each value is.
- Display end of program message with programmer’s name
- Document your test cases using the comment block of flowgorithm
SPECIAL NOTE:
Do not use magic numbers when named constants are a better choice. i.e., #cost of tickets, TAX rate, fee charges, test for fee. Make sure your calculation uses the NAMED CONSTANTS instead of actual numbers.
Input, Processing and output (ipo)
Input |
Processing |
Output |
Constants: Rates for: · More than 10 · More than 6 less than 10 · More than 2, less than 6 · Equal or Less than 2 Variables: Package weight
|
Get package weight Assign each rate for shipping
Test for rate to be charged Set rate to rate to be charged (hint: your constants)
Calculate shipping total · Shipping total = rate * weight **hint: The order that you test matters. |
Welcome message Prompt: weight
Result: Rate charged and total shipping cost
End of Program message
|
Storage/Memory Location
|
|
|
Test Data |
T1: W= 2 rate = 1 total = 2 T2: w= 5 rate = 2.25 total = 11.25 T3: W= 6 rate = 2.25 total = 13.50 T4: W= 7 rate = 3.50 total = 24.5 T4: W= 10 rate = 3.50 total = 35.00 T5: W= 12.3 rate = 4.10 total = 49.2 |
|
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images
please i ned help this questions with flowgorithm chart. thanks
please i ned help this questions with flowgorithm chart. thanks
- The following systems flowchart segment depicts a data entry clerk keying data from a source document into a business event data store. Which statement is correct? Data Entry Clerk Computer Select one: a. The second symbol in the data entry clerk column should be a square. b. The systems flowchart was created properly. c. The arrow between the computer process and the data store should be bi-directional. x d. The computer process should be shown in the computer column.arrow_forwardEvaluate this expression, assuming a = 5, b = 2, and c = 4: a % b c && c % b * aarrow_forwardQUESTION 6 A CASE expression may use a O ELSE clause THEN All of these END WHEN None of thesearrow_forward
- q. if the payee, such as a grocery store, keeps the original check, this is called ____ a.) primary reservation b.) simple truncation c.) radical truncation d.) secondary reservation Please do fast ASAP fastarrow_forwardOrders for a stock trading system are coded as follows from left to right:1. The first character is 'B' for a "buy" order, 'S' for a "sell" order2. The number of shares to buy or sell3. The stock ticker symbol in all uppercase letters for a "buy" order or all lowercase letters for a "sell" order4. If the order is a "limit" order with a specific buy/sell price, the requested price is in pennies, otherwise the price should be omitted and the order will be a market order at the current asking price for the stock5. If the order is a "limit" order with an expiration time, the character 'T' followed by the number of minutes until the order expires should no longer be executedNote that the order code may only contain letters and numbers. (No comma, hyphen, etc)What would the code be to sell 8000 shares of Veteran Technology Solutions stock (ticker symbol: VTS) at the current market price?arrow_forwardGiven the following list of steps in the admission process: Search for a school Prepare for the admission test and write test Did you pass the exam? Submit necessary documents and get admission End Are seats available? Start Is there an admission test? Re-arrange the above steps in the correct order and use MS Visio to draw a flowchart for the admission process.arrow_forward
- $1:When using the test data approach in detecting a problem, the test data must include all possible valid and invalid conditions.$2:Encryption services applied where confidentiality is a stated requirement is an example of systems development and acquisition controls. A. Both Statements are trueB. Only the first statement is trueC. Only the second statement is trueD. None of the statements are truearrow_forwardSelect the if statement that assigns .2 to commissionRate if the monthlySales is greater than 10000. if monthlySales > 10000: .2 = commissionRate if monthlySales > 10000: commissionRate if monthlySales > 10000 commissionRate .2 if monthlySales > 10000: commissionRate == .2arrow_forwardFinal answer pleasearrow_forward
- PLEASE USE FLOWGORITHM.Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure) and also the total tuition at the end of the program. Hint: You will need to use two assignment statements for calculating purposes. One will be an accumulating total assignment statement.arrow_forwardplease helparrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY