top of page
PROGRAMMING CHALLENGES
Shipping Cost Calculator
Difficulty:
2 Medium
1.5 Selection
Topic:
Write a program that calculates the shipping cost for a package based on its weight. The shipping rates are as follows:<br><br> - Weight <= 2 kg: $5<br> - Weight > 2 kg and <= 5 kg: $10<br> - Weight > 5 kg and <= 10 kg: $15<br> - Weight > 10 kg: $20
INPUTS: Package weight (float)
PROCESSES:
1. Accept user input for the package weight
2. Use selection statements to determine the shipping cost based on the weight range
OUTPUTS: Shipping cost (float)
PROCESSES:
1. Accept user input for the package weight
2. Use selection statements to determine the shipping cost based on the weight range
OUTPUTS: Shipping cost (float)
Need help with your programming skills?
If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.
1 hr
50 British pounds1 hr
55 British pounds
bottom of page