Activity Objective - Demonstrate your analytical and problem-solving skills in analyzing a problem statement and providing your solution by developing a Raptor program that addresses
Activity Objective- Demonstrate your analytical and problem-solving skills in analyzing a problem statement and providing your solution by developing a Raptor program that addresses those issues expressed in the problem statement.
Activity Statement- The fast Freight Shipping Services would like to automate its freight shipping process. It does charge the following rates:-
Weight of Package | Rate Per Pound |
2 pounds or less | $3.10 |
Over 2 pounds but not more than 6 pounds | $2.20 |
Over 6 pounds but not more than 10 pounds | $1.70 |
Over 10 pounds | $1.30 |
Design a top-down design program that asks the user to enter the weight of a package and then displays the shipping charges.
Activity Instructions-
Launch the Raptor Flowcharting Program and set the mode to intermediate in order to utilize modules (Procedure) in the solution of this problem. Do not use Subcharts.
Develop the Raptor program using the criteria listed below. Be sure to run the program so that it is free of any syntax errors and any logical errors.
The program consists of four modules (Procedures) namely, main( ), getWeight( ), getCharges( ), and displayResults( ).
The main( ) module will call the getWeight( ) module, the getCharges( ) module, and the displayResults( ).
The purpose of the getWeight() module is to determine the weight of the package by asking the user to enter the weight of the package. Be sure to prompt the user with an informative message. This module is called only by the main( ) module.
The purpose of the getCharges( ) module is to determine the charges which will the customer will incur based on the weight of the package. Package Charges is computed by Shipping Charges = Package Weight * Rate Per Pound
The purpose of the displayResults( ) module is to display the Package Weight, the Rate per Pound, and the Shipping Charges. Be sure to produce informative output to the users containing the above information.
Be sure to include appropriate documentations.
Be sure that you do not use global variables. Use only local variables.
Be sure that you do not use subcharts. Use only procedures.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started