Question: You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system consists of a dedicated console such as the one

You have been tasked with designing the ordering software for a standalone ticketing kiosk. The system consists of a dedicated console such as the one pictured below:
Ticketing Kiosk
The software will need to perform the following tasks:
Accept orders for multiple tickets
Calculate a total order price
Inform the user of the total price
Inform the user of the value of any discount applied
Prompt the user for order confirmation
The payment and receipt subsystems will be handled by another team. You only need to design the ordering interface.
Pricing
This system will be used for exactly one event / location, so the price calculations will be embedded into the software and are as follows:
Ticket Price
Adult $25.00
Child (40% discount on Adult price)
Pensioner (25% discount on Adult price)
A 15% discount is applied to any order in excess of $120
Task A1(15%)
Write a pseudocode function which calculates the price of a ticket order according to the price table above.
The function should take 3 inputs:
The number of adult tickets requested
The number of child tickets requested
The number of pensioner tickers requested
The return value of the function should be the total price of the order.

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!