Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Duration in hours Total Price Calculation 3 base price 5 base price 6 base price + (1 * 0.25 ' base price) 8 base price

image text in transcribed
Duration in hours Total Price Calculation 3 base price 5 base price 6 base price + (1 * 0.25 "' base price) 8 base price + (3 * 0.25 * base price) Table 2. Example Pricing Calculations Your task is to create a program (based on the provided owchart) that will pick the least-price bus combination. It should also calculate the nal price for a tour group. Your program should accept the number of tourists (P), the tour duration (you can assume this will always be entered as an integer), the base rates for each bus size, and the extra hourly percentage (EHP) and then calculate the price components and total price for the most efcient tour bussing option per day. If there is a multi-day tour, the program will be run for each day of the multiday tour. Thus, your program does not need to support calculations for more than one day at a time. Your program should display the number of small buses (NSB) needed and the number of large buses (NLB) needed, including the small bus price extension (SE = NSB * SBP) and large bus price extension (LE = NLB * LBP). The program should also show the extra charged hours (ECH), if any, over ve. It should also display the extra- smallbus price (SEHC) and the extra-large-bus price (LEHC) based on the hours over ve hours. It should also display the total small bus price (TSBP) and total large bus price (TLBP), and the total price of the tour (TP). Note that the user will enter the number of people (P) and the number of hours (H) each time the program is run. But the pricing parameters are usually stable, so the values for these parameters will not be entered by the user each time. The visual basic code should accept the values of P and H into variables. It should do the same for the value of the pricing parameters from the pricing parameters cells as well

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

Step: 3

blur-text-image

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

Management Using Practice And Theory To Develop Skill

Authors: David Boddy

8th Edition

1292271817, 978-1292271811

More Books

Students also viewed these General Management questions