Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ :The Fast Freight Company charges the following rates: Weight of Package (in Kilograms) Rate per 500 Miles shipped 2 Kg or less $1.10 Over

C++ :The Fast Freight 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.35 Over 6 Kg but not more than 10 Kg $3.70 Over 10 Kg but not more than 20 Kg $4.80 Write a program that asks for the weight of the package and the distance it is to be shipped, and then display 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 maximum weight the company will ship). Do not accept distances of less than 10 miles or more than 3,000 miles. These are companys minimum and maximum shipping distances.The program should have the capability to process multiple set of shipping data. Use a do..while statement with the prompt message "Do you want to enter another set? (Y/N) You will incorporate an Error trap code to validate the (Y/N) response

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions