Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ pls The Fast as Light Shipping company charges the following rates. Weight of the item being sent Rate per 100 Miles shipped 2kg or
C++ pls
The Fast as Light Shipping company charges the following rates. Weight of the item being sent Rate per 100 Miles shipped 2kg or less. $0.25 Over than 2 kg but not more than 10 kg $0.30 Over 10 kg but not more than 20 kg. $0.45 Over 20 kg, but less than 50kg. $1.75 Write a program that asks for the weight of the package, and the distance to be sent. And then displays the charge. Round the miles shipped up to the nearest 100 mile mark. So a package that travels 120 miles should be charged for 200 miles, but a package that travels 400 miles exactly should only be charged for 400 miles. Input validation: Make sure that the weight is more than 0 kg, and less than 50kg. Make sure the miles is more than 10 miles and not more than 3000 miles. Data test: A 12 kg object that is sent 240 miles should have a result of $1.35Step 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