Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions