Question: CMSC140 Fall 2017 Programming Project 3 (for Chapter 4) Concepts tested by this programs: 1. Selection control structure a. The if statement b. The switch

CMSC140 Fall 2017 Programming Project 3 (for Chapter 4) Concepts tested by this programs: 1. Selection control structure a. The if statement b. The switch statement (optional) 2. Relational operators and logical operators a. Use of relational and logical operators to check numeric ranges 3. User friendly a. Use of user friendly user prompt and simple input validation b. Use of meaningful output labels and format c. Use of output manipulators Program Specification Shipping Charges Write a program that asks for the weight of the package and the distance it is to be shipped, and then displays the charges. Input Validation: Do not accept values of 0 or less for the weight of the package. Do not accept weights of more than 20 kg (this is the maximum weight the company will ship). Do not accept distances of less than 10 miles or more than 3,000 miles. These are the companys minimum and maximum shipping distances. The Fast Freight Shipping Company charges the following rates: Weight of Package (in Kilograms) Rate per 500 Miles Shipped 2 kg or less $1.10 Over 2 kg but not more than 6 kg $2.20 Over 6 kg but not more than 10 kg $3.70 Over 10 kg but not more than 20 kg $4.80 Use only the main function and constructs from Chapters 1 through 4 (NO loops or arrays.) Output Examples Project 3 Submission requirements: Deliverables: 1. C++ file project3.cpp (source code) 2. Word document should include your test plan table (show at least 2 packages) and screen snapshots of those 2 packages (must be different from examples shown above) 3. Flowchart Diagram Deliverable format: The above deliverables will be packaged as follows. Two compressed files in the following formats: 1. LastNameFirstName_Project3_Complete.zip [a compressed file containing the following] a. Flowchart.jpg or .docx or .pdf b. Project3.docx with test cases and screen shots c. project3.cpp (source code)

CMSC140 Fall 2017 Programming Project 3 (for Chapter 4) Concepts tested by

2. LastNameFirstName_Project3_Moss.zip [a compressed file containing only the following] a. Project3.cpp Your completed assignment should be submitted to the Blackboard ->Course Content-> assignment area no later than the due date. You should include one block comment at the top of each program containing the course name, the project number, your name, the date and platform/compiler that you used to develop the project, as well as pseudo code for the program, for example /* * Class: CMSC140 [CRN] * Instructor: * Description: (Give a brief description for the Project) * Due: MM/DD/YYYY * I pledge that I have completed the programming assignment independently. I have not copied the code from a student or any source. I have not given my code to any student. Print your Name here: __________ * Input: (from the keyboard) * 1. * 2. * Output: (to the screen * 1. * 2. * (more as needed) * Process: ******** Algorithm********************* (be sure to indent items in if/else and switch statement processing) * 1. * 2. * 3. * 4. * 5. * (more as needed) */ Notes: o Proper naming conventions: All constants, except 0 and 1, should be named. Constant names should be all upper-case, variable names should begin in lower case, but subsequent words should be in title case. Variable and method names should be descriptive of the role of the variable or method. Single letter names should be avoided. o Documentation: The documentation requirement for all programming projects is one block comment at the top of the program containing the course name, the project number, your name, the date and platform/compiler and algorithm that you used to develop the project. If you use any code or specific algorithms that you did not create, a reference to its source should be made in the appropriate comment block. Additional comments should be provided as necessary to clarify the program. o Indentation: It must be consistent throughout the program and must reflect the control structure. Test Plan Variable name Variable name Variable name (morewhen needed) Test accurate? C Word Review View Tell me what you want to do ut Examples CIWINDOWSlsystem321cmd.exe SHIPPING CHARGES er the weight of the package in kilograms (max 2 Kg): 3.2 er the distance the package is to be shipped (min 10 Mi, max 3eee Mi): 1580 cost to ship your package is $8.86e grammer: insert your name here ss any key to continue CWINDoWS1system321cmd.exe SHIPPING CHARGES er the weight of the package in kilograms (max 20 Kg): 25 er the distance the package is to be shipped (min 10 Mi, max 3000 Mi): 2e do not ship packages of more than 20 Kg. grammer: insert your name here ss any key to continue . . CAWINDOWS1system321cmd.exe SHIPPING CHARGES r the distance the package is to be shipped (min 10 Mi, max 30e0 Mi): 9 do not ship less than 10 miles or more than 300e miles grammer: insert your name here ss any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!