Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question:The Fast Freight Shipping Company charges the following rate: Weight of Package Shipping Rate Per 500 miles 2 pounds or less $1.10 Over 2 pound

Question:The Fast Freight Shipping Company charges the following rate:

Weight of Package Shipping Rate Per 500 miles
2 pounds or less $1.10
Over 2 pound but no more than 6 pounds $2.20
Over 6 pound but no more than 10 pounds $3.70
Over 10 Pounds $4.80

The shipping rate per 500 miles are not prorated. For example, if a 2-pound package is shipped 550 miles, the shipping charges will be $2.20. If a 6.5-pound package is shipped 1150 miles, the shipping charges will be $11.10.

Write a program that asks for user to enter the weight of a package, and the number of miles shipped. The program will then calculate and display the shipping charges for the package.

Requirements:

1. Program should be well-documented

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books