Question: Given the following problem: An algorithm is needed to calculate payment to be paid by a customer when booking a tour with a travel agency.

Given the following problem:

An algorithm is needed to calculate payment to be paid by a customer when booking a tour with a travel agency. The travel agency at the moment only offers Bali as tourist destination. There are three packages offered as shown in the table below.

Package Cost per adult (RM)* Description

A 700 includes return ticket, 3D/2N accommodation and meals

B 400 includes 3D/2N accommodation and meals

C 200 includes 3D/2N accommodation

* Note: Children are given 25% discount

Questions:

A. State the input(s) needed for the algorithm

B. State the output(s) of the algorithm

C. Based on the given problem description, what will be the payment to be paid if there are 10 adults and 2 children joining a tour? Show the calculation.

D. Draw a flowchart to depict the algorithm for solving the problem.

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!