Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Fast Freight Shipping Company charges the following rates: 2 lbs or less $1.10, over 2 lbs but no more than 6 lbs $2.20, over

The Fast Freight Shipping Company charges the following rates:

2 lbs or less $1.10, over 2 lbs but no more than 6 lbs $2.20, over 6 lbs but not more than 10 lbs $3.70, over 10lbs $3.80.

Write a C++ program that asks for the weight of the package and displays the shipping charges.

Program must be design in this way: 1st 2 pounds cost $1.10/lbs, next 4 pounds cost 2.20/lbs, next 6 pounds cost 3.70/lbs, beyond 10 lbs cost $3.80/lbs. example 12.5 lbs costs: 2*1.10=2.20, 4*2.20 =8.80, 6* 3.70 =22.20, 0.5* 3.80 = 1.9 so total cost = 35.10$

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Know how procedures protect an organization

Answered: 1 week ago