im almost done with my code, just need to fix a few things. the prompt is to calculate shipping charges of a package based on the distance it will be shipped and its weight. this is the data table:
Weight of Package (in kilograms) Rate per 500 Miles Shipped
2 kg or less $3.10
Over 2 kg but not more than 6 kg $4.20
Over 6 kg but not more than 10 kg $5.30
over 10 kg $6.40
I know there's an error on line 35 about the bracket, but I don't know why it is wrong. Also the main thing I need to fix is having that void function included in my code. thank you all in advance
thank you. when I try to run the code, it doesn't calculate the cost as it should when the void calculate charge function is called. idk how to fix that.
edit: I moved the cout on line 27, fixed it. thank you for the help!