Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Programming Project 3 (for Chapter 4) Concepts tested by this programs: 1. Selection control structure a. The if statement b. The switch statement (optional)

C++ 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is an AWS Region?

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

4. What action should Cherita Howard take and why?

Answered: 1 week ago