Question: Construct a solution algorithm for the following problems. Your solution should contain: A defining problem A pseudo code algorithm A desk check of the algorithm

Construct a solution algorithm for the following problems. Your solution should contain:
A defining problem
A pseudo code algorithm
A desk check of the algorithm
Three test cases for each question. Two valid and one error test case
Question 1
The Next-Day Delivery Service Provider provides the parcel delivery service within Singapore. The delivery charge is calculated based parcel weight shown below in the table,
Weight
Charge
Less than 3 kg
$8.00
3-5 kg
$12.00
For each additional 1 kg (Max of 25 kg)
$1.50
Design an algorithm that will prompt for, receive the parcel weight, calculate the delivery charge and print the value. The program is to repeat the processing until a sentinel weight of 0 is entered.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!