2. Rose Tours and Travels:
Assume you have been asked to develop an algorithm for cost calculation of Rose Tours and
Travels. Please draw the flowchart with variable list based on the information below.
Customers indicate their tour type (TT) and number of people in their group (NP). Based on the
tour type you need to determine the Price Per Person (PPP), and based on the number of people
you need to determine the discount rate (DR). Your program should then calculate the total
cost before discount (TCBD), discount applied (DA), and total cost after discount (TCAD). You
need to output the price per person, total cost before discount, discount applied, and total cost
after discount. Below are formulas to calculate TCBD, DA, and TCAD.
TCBD = PPP * NP
DA = TCBD * DR
TCAD = TCBD - DA
The table below shows pricing for the tours offered:
Type of Tour
1-day tour
2-day tour
Price Per person
$75
$100
There are group bookings available. The discount options are shown below:
Group size (Number of people)
Between 10 and 25(both inclusive)
Greater than 25
Discount offered
10%
20%