Can someone please help me solve this problem? I've tried 20 different things and have had no such luck. The problem is:

The Fast Freight Shipping Company charges the following rates:
2 pounds or less --- $1.50 per pound
Over 2 pounds but not more than 6 pounds---$3.00 per pound
Over 6 pounds but not more than 10 pounds---$4.00 per pound
Over 10 pounds---$4.75 per pound

Write a program that asks the user to enter the weight of a package and then displays the shipping charges formatted to 2 decimal places after the decimal point.

Any help would be much appreciated as this problem has caused lots of frustration.

Recommended Answers

All 2 Replies

The usual response I give here (and hopefully most others do too) is to say that you need to show us your work.
You say you have tried a few things so show us you best effort. We can hopefully guide from there.

Finally figured it out myself, thanks though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.