Construct a program that allows the user to input the weight of a package in pounds. The program should then compute and display the following.
The shipping charges are computed per the following rules:
If the package weighs more than 10 pounds, the shipping charges are $3.80.
If it weighs more than 6 pounds but less than or equal to 10 pounds, the shipping charges are $3.70.
If it weighs more than 2 pounds but less than or equal to 6 pounds, the shipping charges are $2.20.
If it weighs less than or equal to 2 pounds,the shipping charges are $1.10.
The program should calculate and print the shipping charges for the specified package.
Lil Babygirl 0 Newbie Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Lil Babygirl 0 Newbie Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
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.