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 $
Child discount on Adult price
Pensioner discount on Adult price
A discount is applied to any order in excess of $
Task A
Write a pseudocode function which calculates the price of a ticket order according to the price table above.
The function should take 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
