Hi
I need help with my C++ assignment please. It has to be handed in next week.
Write a program that reads in a distance in miles, then calculates and displays the corresponding shipping cost. Each shipment incurs a fixed cost of £50 and the price per mile is calculated according to the rules below
•Each of the first 100 miles (inclusive) cost £5.50
•Over 100 miles and up to 500 miles (inclusive): £4.00 per mile.
•Over 500 miles: £2.50 per mile.
For example, the cost of shipment over a distance of 550.50 miles is £2326.25
(i.e., £50 + (100*5.5) + (400*4.0) + (50.5*2.5)).
if the user enters a negative amount or zero for the distance the program should display an error message
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment