akosiraff

Download: Shipping,Company,C++

Jan 30th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/shipping-company-c/
  3. A shipping company calculates charges based on parcel’s weight and distance to be shipped.
  4. The weight charges are:
  5. 0 to 10 pounds – > $0.75 per pound
  6. 10 to 15 pounds – > $0.85 per pound
  7. 15 to 20 pounds – > $0.95 per pound
  8. over 20 pounds NOT ALLOWED
  9. Distance charges are:
  10. 0 to 50 miles – > $0.07 per mile
  11. 50 to 100 miles – > $0.06 per mile
  12. 100 to 200 miles – > $0.05 per mile
  13. 200 to 500 miles – > $0.04 per mile
  14. over 500 miles NOT ALLOWED
  15. Create a program to compute the total charge based on the two schedules above. Your program should ask the user for the parcel’s wight and distance to be shipped. Then it should compute and add the two charges into the final one to be displayed. IMPORTANT: Your program should display an ERROR for values that are not allowed for either weight, miles, or both. Not allowed values are negative or over the limit from the two schedules. Your program will be tested for such values.
  16. Sample run:
  17. Welcome to Shipping Company!
  18. Please enter the weight in pounds of your package: 2.5
  19. Please enter the distance in miles to be shipped: 56
  20. Your total charge is: $5.24
  21. Download: http://solutionzip.com/downloads/shipping-company-c/
Add Comment
Please, Sign In to add comment