Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
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