Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROBLEM 4 A shipping company allows customers to choose between standard or express delivery. Standard deliveries are charged the following rates: Weight 4 pounds or

image text in transcribed

PROBLEM 4 A shipping company allows customers to choose between standard or express delivery. Standard deliveries are charged the following rates: Weight 4 pounds or less Over 4 pounds but no more than 8 pounds Over 8 pounds but no more than 15 pounds Over 15 pounds Rate per pound $1.05 $0.95 $0.85 $0.80 Express deliveries are charged the following rates: Weight 2 pounds or less Over 2 pounds but no more than 5 pounds Over 5 pounds but no more than 10 pounds Over 10 pounds Rate per pound $3.25 $2.95 $2.75 $2.55 Write a program to do the following. Ask the customer to enter "S" for standard shipping or E for express shipping. Also ask the user to enter the weight of the package in pounds. Calculate and display shipping charge. The following are some examples. Enter S for standard shipping, E for express: S Enter weight (Ibs): 12.5 Shipping charge: 10.625 Enter S for standard shipping, E for express: E Enter weight (Ibs): 4.8 Shipping charge: 14.16

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions