Question
The Express Delivery Service provides the fastest doorstep collection and delivery within 2-hour in Singapore. The delivery charge is calculated based on the zonal classification
The Express Delivery Service provides the fastest doorstep collection and delivery within 2-hour in Singapore. The delivery charge is calculated based on the zonal classification in Singapore and there are two main types of zones, one is Central Business District (CBD) with the postal codes starting with 01 to 08, 17 to 19, 22 and 23 and other one is NON-CBD for all other areas other than CBD. The postal code in Singapore contains exactly 6 numeric digits. Below mapping table is used to calculate the delivery charge
Design an algorithm that will prompt for and receive the postal code for both pickup and delivery location andcalculate the delivery charge and print it. The program will then prompt for “Do you want to calculate for
another delivery (Yes/No)?” and is to repeat the processing until “No” is entered.
Within CBD Category CBD to NON-CBD / NON-CBD to CBD Outside CBD Delivery Charge Weight $15.00 Up to 5kg $20.00 Up to 5kg $25.00 Up to 5kg
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Define the zonal classification for CBD and NONCBD areas cbdzones 01 02 ...Get Instant Access with AI-Powered 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